(overrides: Partial<Invoice> = {})
| 24 | let settings: Sinon.SinonStub |
| 25 | |
| 26 | const stubInvoice = (overrides: Partial<Invoice> = {}): Invoice => ({ |
| 27 | id: 'invoice-id', |
| 28 | pubkey: 'pubkey1234', |
| 29 | bolt11: 'lnbc500n1...', |
| 30 | amountRequested: 1000n, |
| 31 | unit: InvoiceUnit.SATS, |
| 32 | status: InvoiceStatus.PENDING, |
| 33 | description: 'test invoice', |
| 34 | confirmedAt: null, |
| 35 | expiresAt: new Date('2099-01-01'), |
| 36 | updatedAt: new Date(), |
| 37 | createdAt: new Date(), |
| 38 | ...overrides, |
| 39 | }) |
| 40 | |
| 41 | beforeEach(() => { |
| 42 | sandbox = Sinon.createSandbox() |
no outgoing calls
no test coverage detected