From 7ceb790338971b7019901527f0c7da15920137fa Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Tue, 19 Nov 2024 13:39:31 +0100 Subject: [PATCH] fix bad test --- test/manifest.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/manifest.js b/test/manifest.js index f7c0cf3e..6cf8ab73 100644 --- a/test/manifest.js +++ b/test/manifest.js @@ -170,10 +170,10 @@ test('create verifier - multi signer', async function (t) { const asig = crypto.sign(batch.signable(verifier.manifestHash), a.secretKey) const bsig = crypto.sign(batch.signable(verifier.manifestHash), b.secretKey) - const signature = assemble([{ signer: 0, signature: asig }, { signer: 1, signature: bsig }]) - const badSignature = assemble([{ signer: 0, signature: asig }, { signer: 1, signature: asig }]) - const secondBadSignature = assemble([{ signer: 0, signature: asig }, { signer: 0, signature: asig }]) - const thirdBadSignature = assemble([{ signer: 0, signature: asig }]) + const signature = assemble([{ signer: 0, signature: asig, patch: 0 }, { signer: 1, signature: bsig, patch: 0 }]) + const badSignature = assemble([{ signer: 0, signature: asig, patch: 0 }, { signer: 1, signature: asig, patch: 0 }]) + const secondBadSignature = assemble([{ signer: 0, signature: asig, patch: 0 }, { signer: 0, signature: asig, patch: 0 }]) + const thirdBadSignature = assemble([{ signer: 0, signature: asig, patch: 0 }]) t.ok(verifier.verify(batch, signature)) t.absent(verifier.verify(batch, badSignature))