1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Use single/double instead of singleQuoted/doubleQuoted

This commit is contained in:
Mike Farah
2020-04-17 11:24:45 +10:00
parent 06d8715cbe
commit 64135a16e1
4 changed files with 10 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ func TestNewWithTaggedStyleCmd(t *testing.T) {
func TestNewWithDoubleQuotedStyleCmd(t *testing.T) {
cmd := getRootCommand()
result := test.RunCmd(cmd, "new b.c cat --style=doubleQuoted")
result := test.RunCmd(cmd, "new b.c cat --style=double")
if result.Error != nil {
t.Error(result.Error)
}
@@ -66,7 +66,7 @@ func TestNewWithDoubleQuotedStyleCmd(t *testing.T) {
func TestNewWithSingleQuotedStyleCmd(t *testing.T) {
cmd := getRootCommand()
result := test.RunCmd(cmd, "new b.c cat --style=singleQuoted")
result := test.RunCmd(cmd, "new b.c cat --style=single")
if result.Error != nil {
t.Error(result.Error)
}

View File

@@ -53,7 +53,7 @@ func TestWriteWithDoubleQuotedStyleCmd(t *testing.T) {
defer test.RemoveTempYamlFile(filename)
cmd := getRootCommand()
result := test.RunCmd(cmd, fmt.Sprintf("write %s b.c cat --style=doubleQuoted", filename))
result := test.RunCmd(cmd, fmt.Sprintf("write %s b.c cat --style=double", filename))
if result.Error != nil {
t.Error(result.Error)
}
@@ -71,7 +71,7 @@ func TestWriteWithSingleQuotedStyleCmd(t *testing.T) {
defer test.RemoveTempYamlFile(filename)
cmd := getRootCommand()
result := test.RunCmd(cmd, fmt.Sprintf("write %s b.c cat --style=singleQuoted", filename))
result := test.RunCmd(cmd, fmt.Sprintf("write %s b.c cat --style=single", filename))
if result.Error != nil {
t.Error(result.Error)
}