mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
Improve output for test case
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
parent
d5779a9822
commit
4576c081b9
@ -155,7 +155,7 @@ func TestParsePackageJSON_Partial(t *testing.T) { // see https://github.com/anch
|
|||||||
t.Fatalf("failed to parse package-lock.json: %+v", err)
|
t.Fatalf("failed to parse package-lock.json: %+v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(actual) != 0 {
|
if actualCount := len(actual); actualCount != 0 {
|
||||||
t.Errorf("no packages should've been returned")
|
t.Errorf("no packages should've been returned (but got %d packages)", actualCount)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user