From 1c596277403453f6ab74497d9c03cc7472bd987b Mon Sep 17 00:00:00 2001 From: Gildas Date: Wed, 21 Aug 2024 20:13:40 +0200 Subject: [PATCH] test signatures --- tests/all/test-fs-passthrough.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/all/test-fs-passthrough.js b/tests/all/test-fs-passthrough.js index 8fe8d998..8a1a3019 100644 --- a/tests/all/test-fs-passthrough.js +++ b/tests/all/test-fs-passthrough.js @@ -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();