mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
TST: fix broken test
This commit is contained in:
parent
2c4e553bd0
commit
630e9ce707
1 changed files with 6 additions and 4 deletions
|
@ -161,7 +161,7 @@ describe('Bech32 Segwit HD (BIP84) with BIP47', () => {
|
|||
await walletSender.fetchTransactions();
|
||||
|
||||
assert.ok(walletSender.getTransactions().length >= 3);
|
||||
assert.ok(walletSender._receive_payment_codes.length === 1);
|
||||
assert.ok(walletSender._receive_payment_codes.length >= 2);
|
||||
|
||||
assert.ok(walletSender.getBIP47NotificationTransaction(bip47instanceReceiver.getSerializedPaymentCode())); // already notified in the past
|
||||
assert.ok(
|
||||
|
@ -276,9 +276,11 @@ describe('Bech32 Segwit HD (BIP84) with BIP47', () => {
|
|||
-102308,
|
||||
); // we paid samurai
|
||||
|
||||
assert.deepStrictEqual(w.getBIP47SenderPaymentCodes(), [
|
||||
'PM8TJXuZNUtSibuXKFM6bhCxpNaSye6r4px2GXRV5v86uRdH9Raa8ZtXEkG7S4zLREf4ierjMsxLXSFTbRVUnRmvjw9qnc7zZbyXyBstSmjcb7uVcDYF',
|
||||
]); // samurai can pay us
|
||||
assert.ok(
|
||||
w
|
||||
.getBIP47SenderPaymentCodes()
|
||||
.includes('PM8TJXuZNUtSibuXKFM6bhCxpNaSye6r4px2GXRV5v86uRdH9Raa8ZtXEkG7S4zLREf4ierjMsxLXSFTbRVUnRmvjw9qnc7zZbyXyBstSmjcb7uVcDYF'),
|
||||
); // samurai can pay us
|
||||
|
||||
assert.deepStrictEqual(w.getBIP47ReceiverPaymentCodes(), []); // we can pay no-one
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue