fix: unmarshal legacyImports

This commit is contained in:
sh0rez 2020-02-28 23:22:41 +01:00
parent e28e7ff55b
commit fcac885ce2
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
3 changed files with 5 additions and 4 deletions

View file

@ -210,7 +210,7 @@ func TestLoadEmpty(t *testing.T) {
// write empty json file
tempFile := filepath.Join(tempDir, jsonnetfile.File)
err = ioutil.WriteFile(tempFile, []byte(`{"version":1}`), os.ModePerm)
err = ioutil.WriteFile(tempFile, []byte(`{}`), os.ModePerm)
assert.Nil(t, err)
// expect it to be loaded properly