MCPcopy Create free account
hub / github.com/cameri/nostream / makeCompletedInvoice

Function makeCompletedInvoice

test/unit/services/payments-service.spec.ts:266–273  ·  view source on GitHub ↗
(overrides: Partial<Invoice> = {})

Source from the content-addressed store, hash-verified

264
265 describe('confirmInvoice', () => {
266 const makeCompletedInvoice = (overrides: Partial<Invoice> = {}): Invoice =>
267 stubInvoice({
268 status: InvoiceStatus.COMPLETED,
269 confirmedAt: new Date(),
270 amountPaid: 2000n,
271 unit: InvoiceUnit.MSATS,
272 ...overrides,
273 })
274
275 const makeSettings = (admissionFeeSchedules: any[] = []) => ({
276 payments: {

Callers 1

Calls 1

stubInvoiceFunction · 0.85

Tested by

no test coverage detected