Suggested changes

This commit is contained in:
Phani Teja Marupaka
2021-07-12 23:27:09 -07:00
parent 74e867833a
commit 29be7fabe4
6 changed files with 54 additions and 116 deletions

View File

@@ -79,16 +79,42 @@ env:
expectedOutput: `compact`,
},
{
name: "skip wrapped sequence strings",
name: "skip wrapped sequence strings, pipe hyphen",
input: `apiVersion: apps/v1
kind: Deployment
spec: |-
- foo
- bar
env:
- foo
- bar
- baz
`,
expectedOutput: `compact`,
},
{
name: "skip wrapped sequence strings, pipe",
input: `apiVersion: apps/v1
kind: Deployment
spec: |
- foo
- bar
`,
expectedOutput: `compact`,
},
{
name: "skip wrapped sequence strings, right angle bracket",
input: `apiVersion: apps/v1
kind: Deployment
spec: >
- foo
- bar
`,
expectedOutput: `compact`,
},
{
name: "skip wrapped sequence strings, plus",
input: `apiVersion: apps/v1
kind: Deployment
spec: +
- foo
- bar
`,
expectedOutput: `compact`,
},