Adding a failing test.
Co-authored-by: Brandon Teng <[email protected]>
This commit is contained in:
co-authored by
Brandon Teng
parent
5bbc3ba658
commit
0e665bf3ac
@@ -164,3 +164,14 @@ test('it adds packages outside of the deny lists', async () => {
|
||||
|
||||
expect(deniedChanges.length).toEqual(0)
|
||||
})
|
||||
|
||||
test('it adds packages with versions', async () => {
|
||||
const changes: Changes = [npmChange]
|
||||
const deniedChanges = await getDeniedChanges(
|
||||
changes,
|
||||
['pkg:npm/[email protected]'],
|
||||
['pkg:maven:org.apache.logging.log4j']
|
||||
)
|
||||
|
||||
expect(deniedChanges.length).toEqual(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user