Skip to content

Commit 31875bb

Browse files
committed
fix: integration test late setup
1 parent bb61f6b commit 31875bb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/integration/features/invoices/alby-nwc-invoice.feature.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ Given('Alby NWC payments are enabled with URI scheme {string}', async function (
5555
...(settings?.payments?.feeSchedules ?? {}),
5656
admission: [
5757
{
58+
...(admission[0] ?? {}),
5859
enabled: true,
5960
amount: ADMISSION_FEE_MSATS,
6061
whitelists: {},
61-
...(admission[0] ?? {}),
6262
},
6363
],
6464
},
@@ -214,6 +214,10 @@ When('I request an admission invoice for pubkey {string}', async function (this:
214214

215215
this.parameters.albyInvoiceHttpResponse = response
216216
this.parameters.albyTestPubkeys = [...(this.parameters.albyTestPubkeys ?? []), pubkey]
217+
218+
if (response.status === 400) {
219+
throw new Error(`Unexpected 400 response body: ${String(response.data)}`)
220+
}
217221
})
218222

219223
Then('the invoice request response status is {int}', function (this: World<Record<string, any>>, statusCode: number) {

0 commit comments

Comments
 (0)