Skip to content

Commit

Permalink
test signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Aug 21, 2024
1 parent 1631a5b commit 1c59627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/all/test-fs-passthrough.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ async function test() {
}
directory = zipFs.getChildByName("import-zip-crypto");
firstEntry = directory.children[0];
text = await firstEntry.getText(null, { password: "password" });
text = await firstEntry.getText(null, { password: "password", checkSignature: true });
if (text != TEXT_CONTENT || firstEntry.uncompressedSize != TEXT_CONTENT.length) {
throw new Error();
}
directory = zipFs.getChildByName("import-uncompressed");
firstEntry = directory.children[0];
text = await firstEntry.getText();
text = await firstEntry.getText(null, { checkSignature: true });
await zip.terminateWorkers();
if (text != TEXT_CONTENT || firstEntry.uncompressedSize != TEXT_CONTENT.length) {
throw new Error();
Expand Down

0 comments on commit 1c59627

Please sign in to comment.