mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 15:06:36 +01:00
describe cataloger capabilities via test observations (#4318)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -284,7 +284,11 @@ func TestSearchYarnForLicenses(t *testing.T) {
|
||||
}
|
||||
tc.config.NPMBaseURL = url
|
||||
adapter := newGenericYarnLockAdapter(tc.config)
|
||||
pkgtest.TestFileParser(t, fixture, adapter.parseYarnLock, tc.expectedPackages, nil)
|
||||
pkgtest.NewCatalogTester().
|
||||
FromFile(t, fixture).
|
||||
Expects(tc.expectedPackages, nil).
|
||||
WithoutTestObserver(). // this is an online test, thus not the default configuration
|
||||
TestParser(t, adapter.parseYarnLock)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user