Merge pull request #4497 from m-Bilal/fix-3812

Fix 3812; Error message changed and check for MalformedYamlError
This commit is contained in:
Natasha Sarkar
2022-03-24 09:55:44 -07:00
committed by GitHub
8 changed files with 63 additions and 6 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) {