Skip to content

Commit a4f56c1

Browse files
committed
other multisig step fix
1 parent 661abf4 commit a4f56c1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/cucumber/steps/steps.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ module.exports = function getSteps(options) {
437437
Then('the key should be in the wallet', async function () {
438438
let keys = await this.kcl.listKeys(this.handle);
439439
keys = keys.addresses;
440-
assert.deepStrictEqual(true, keys.indexOf(this.pk) >= 0);
440+
assert.ok(keys.indexOf(this.pk) >= 0);
441441
return keys;
442442
});
443443

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

@@ -572,10 +572,7 @@ module.exports = function getSteps(options) {
572572
}
573573

574574
keys = keys.addresses;
575-
assert.deepStrictEqual(
576-
false,
577-
keys.indexOf(algosdk.multisigAddress(this.msig)) >= 0
578-
);
575+
assert.ok(keys.indexOf(algosdk.multisigAddress(this.msig).toString()) < 0);
579576
return keys;
580577
});
581578

@@ -591,7 +588,7 @@ module.exports = function getSteps(options) {
591588
return this.kcl.deleteMultisig(
592589
this.handle,
593590
this.wallet_pswd,
594-
algosdk.multisigAddress(this.msig)
591+
algosdk.multisigAddress(this.msig).toString()
595592
);
596593
});
597594

0 commit comments

Comments
 (0)