Fix for errors+failures parsing package.json

closes: #230

Signed-off-by: Toure Dunnon <toure.dunnon@anchore.com>
This commit is contained in:
Toure Dunnon
2020-10-22 13:58:18 -04:00
committed by Toure
parent 931c796158
commit 15379d1075
6 changed files with 29 additions and 26 deletions
@@ -24,6 +24,7 @@ func TestParsePackageJSON(t *testing.T) {
Metadata: pkg.NpmMetadata{
Author: "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
Homepage: "https://docs.npmjs.com/",
URL: "https://github.com/npm/cli",
},
},
},
@@ -38,6 +39,7 @@ func TestParsePackageJSON(t *testing.T) {
Metadata: pkg.NpmMetadata{
Author: "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
Homepage: "https://docs.npmjs.com/",
URL: "https://github.com/npm/cli",
},
},
},
@@ -62,6 +64,7 @@ func TestParsePackageJSON(t *testing.T) {
}
for _, d := range deep.Equal(actual[0], test.ExpectedPkg) {
t.Errorf("diff: %+v", d)
}
})