Skip to content

Commit

Permalink
Test case updated
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Bilal committed Feb 27, 2022
1 parent 3eae520 commit e25db3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/config/internal/commands/fmt_test.go
Expand Up @@ -164,7 +164,7 @@ func TestCmd_failFileContents(t *testing.T) {
err := r.Command.Execute()

// expect an error
assert.EqualError(t, err, "yaml: line 1: did not find expected node content")
assert.EqualError(t, err, "MalformedYAMLError: yaml: line 1: did not find expected node content")
}

func TestFmtSubPackages(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion kyaml/kio/filters/fmtr_test.go
Expand Up @@ -673,7 +673,7 @@ apiVersion: example.com/v1beta1
`

_, err := FormatInput(strings.NewReader(y))
assert.EqualError(t, err, "yaml: line 15: found character that cannot start any token")
assert.EqualError(t, err, "MalformedYAMLError: yaml: line 15: found character that cannot start any token")
}

// TestFormatFileOrDirectory_yamlExtFile verifies that FormatFileOrDirectory will format a file
Expand Down

0 comments on commit e25db3d

Please sign in to comment.