mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
Improve output for test case
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
parent
d5779a9822
commit
4576c081b9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
if len(actual) != 0 {
|
||||
t.Errorf("no packages should've been returned")
|
||||
if actualCount := len(actual); actualCount != 0 {
|
||||
t.Errorf("no packages should've been returned (but got %d packages)", actualCount)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue