Test case updated

This commit is contained in:
Mohd Bilal
2022-02-27 09:11:00 +00:00
parent 3eae520532
commit e25db3df2e
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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