Skip to content

Commit a347bba

Browse files
committed
add check for the empty case
1 parent a2aa28b commit a347bba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/unitTests/Packages/isValidDownload.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ suite(`${isValidDownload.name}`, () => {
2323
let result = await isValidDownload(sampleBuffer, validIntegrity, new EventStream());
2424
expect(result).to.be.true;
2525
});
26+
27+
test('Returns true if no integrity has been specified', async () => {
28+
let result = await isValidDownload(sampleBuffer, undefined, new EventStream());
29+
expect(result).to.be.true;
30+
});
2631
});

0 commit comments

Comments
 (0)