Adding a failing test.

Co-authored-by: Brandon Teng <[email protected]>
This commit is contained in:
Federico Builes
2024-03-27 15:05:17 +01:00
co-authored by Brandon Teng
parent 5bbc3ba658
commit 0e665bf3ac
2 changed files with 18 additions and 3 deletions
+11
View File
@@ -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)
})