Skip to content

Commit

Permalink
other multisig step fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Feb 2, 2024
1 parent 24dc1a9 commit 13e0add
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/cucumber/steps/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ module.exports = function getSteps(options) {
Then('the key should be in the wallet', async function () {
let keys = await this.kcl.listKeys(this.handle);
keys = keys.addresses;
assert.deepStrictEqual(true, keys.indexOf(this.pk) >= 0);
assert.ok(keys.indexOf(this.pk) >= 0);
return keys;
});

Expand All @@ -448,7 +448,7 @@ module.exports = function getSteps(options) {
Then('the key should not be in the wallet', async function () {
let keys = await this.kcl.listKeys(this.handle);
keys = keys.addresses;
assert.deepStrictEqual(false, keys.indexOf(this.pk) >= 0);
assert.ok(keys.indexOf(this.pk) < 0);
return keys;
});

Expand Down Expand Up @@ -572,10 +572,7 @@ module.exports = function getSteps(options) {
}

keys = keys.addresses;
assert.deepStrictEqual(
false,
keys.indexOf(algosdk.multisigAddress(this.msig)) >= 0
);
assert.ok(keys.indexOf(algosdk.multisigAddress(this.msig).toString()) < 0);
return keys;
});

Expand All @@ -591,7 +588,7 @@ module.exports = function getSteps(options) {
return this.kcl.deleteMultisig(
this.handle,
this.wallet_pswd,
algosdk.multisigAddress(this.msig)
algosdk.multisigAddress(this.msig).toString()
);
});

Expand Down

0 comments on commit 13e0add

Please sign in to comment.