feat: add ability to retrieve remote licenses for yarn.lock (#2338)

---------

Signed-off-by: Colm O hEigeartaigh <coheigea@apache.org>
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
Colm O hEigeartaigh
2023-12-05 13:38:28 -05:00
committed by GitHub
co-authored by Christopher Phillips
parent 23778de112
commit 16dee41b4b
13 changed files with 334 additions and 17 deletions
@@ -132,7 +132,7 @@ func Test_JavascriptCataloger(t *testing.T) {
pkgtest.NewCatalogTester().
FromDirectory(t, "test-fixtures/pkg-lock").
Expects(expectedPkgs, nil).
TestCataloger(t, NewLockCataloger())
TestCataloger(t, NewLockCataloger(CatalogerConfig{}))
}
@@ -183,7 +183,7 @@ func Test_LockCataloger_Globs(t *testing.T) {
pkgtest.NewCatalogTester().
FromDirectory(t, test.fixture).
ExpectsResolverContentQueries(test.expected).
TestCataloger(t, NewLockCataloger())
TestCataloger(t, NewLockCataloger(CatalogerConfig{}))
})
}
}