mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
TST: ln
This commit is contained in:
parent
b6ad5fdc12
commit
99f6441900
@ -298,6 +298,17 @@ describe('LightningCustodianWallet', () => {
|
||||
|
||||
await l2.checkRouteInvoice(invoice);
|
||||
|
||||
// first, tip invoice without amount should not work:
|
||||
let gotError = false;
|
||||
try {
|
||||
await l2.payInvoice(invoice);
|
||||
} catch(_) {
|
||||
gotError = true;
|
||||
}
|
||||
assert.ok(gotError);
|
||||
|
||||
// then, pay:
|
||||
|
||||
let start = +new Date();
|
||||
await l2.payInvoice(invoice, 3);
|
||||
let end = +new Date();
|
||||
|
Loading…
Reference in New Issue
Block a user