Skip to content

Commit 16af4d0

Browse files
fix(sdk-coin-flrp): use regex in rejectedWith to match error substring
chai-as-promised rejectedWith(string) does exact match; use a regex for partial matching of the HTTP 400 error message in the createPairedWallet test. Ticket: SI-287
1 parent aecf9e8 commit 16af4d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/sdk-coin-flrp/test/unit

modules/sdk-coin-flrp/test/unit/flrp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ describe('Flrp test cases', function () {
10261026
.post(`/api/v2/tflrp/wallet/${walletId}/create-paired-wallet`)
10271027
.reply(400, { error: 'Source FLR P wallet is not MPC (multisigType: onchain)' });
10281028

1029-
await basecoin.createPairedWallet({ walletId }).should.be.rejectedWith('Source FLR P wallet is not MPC');
1029+
await basecoin.createPairedWallet({ walletId }).should.be.rejectedWith(/Source FLR P wallet is not MPC/);
10301030
});
10311031
});
10321032
});

0 commit comments

Comments
 (0)