mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-23 23:37:00 +00:00
Test case updated
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user