Inprove createMultisigThresholdPubkey threshold testing

This commit is contained in:
Simon Warta 2021-03-23 13:26:06 +01:00
parent 2655531891
commit e81cb3b017

View File

@ -61,8 +61,11 @@ describe("multisig", () => {
});
it("throws for threshold larger than number of keys", () => {
expect(() => createMultisigThresholdPubkey([test1, test2, test3], 5)).toThrowError(
/threshold k = 5 exceeds number of keys n = 3/i,
expect(() => createMultisigThresholdPubkey([test1, test2, test3], 4)).toThrowError(
/threshold k = 4 exceeds number of keys n = 3/i,
);
expect(() => createMultisigThresholdPubkey([test1, test2, test3], 75)).toThrowError(
/threshold k = 75 exceeds number of keys n = 3/i,
);
});
});