diff --git a/LightningCustodianWallet.test.js b/LightningCustodianWallet.test.js index d81d14bd0..e5f0360e2 100644 --- a/LightningCustodianWallet.test.js +++ b/LightningCustodianWallet.test.js @@ -374,6 +374,14 @@ describe('LightningCustodianWallet', () => { err = true; } assert.ok(err); + + err = false; + try { + await l1.addInvoice(NaN, 'zero amt inv'); + } catch (_) { + err = true; + } + assert.ok(err); }); it('cant pay negative free amount', async () => {