mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 06:26:30 +01:00
Fix for errors+failures parsing package.json
closes: #230 Signed-off-by: Toure Dunnon <toure.dunnon@anchore.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user