Switch to using status over statusCode

This is a difference in the request/fetch APIs.

GitOrigin-RevId: bde9adcf4de2ceaabfd9baae7a93bf2b0b5e5a1e
This commit is contained in:
andrew rumble
2024-08-01 08:04:47 +00:00
committed by Copybot
parent 0a62bc1239
commit 2ccd39b2fa
3 changed files with 16 additions and 17 deletions
@@ -166,7 +166,7 @@ const getInvoicePage = fullInvoicesIds => queryOptions => {
const hasMore = end < fullInvoicesIds.length
const nextPageCursor = hasMore ? `${end}%3A${end + ITEMS_PER_PAGE}&v=2` : null
const response = {
statusCode: 200,
status: 200,
headers: {
link: hasMore
? `https://fakerecurly.com/v2/invoices?cursor=${nextPageCursor}`
@@ -188,7 +188,7 @@ describe('CollectPayPalPastDueInvoice', function () {
if (/accounts\/(\d+)\/billing_info/.test(options.url)) {
return {
response: { statusCode: 200, headers: {} },
response: { status: 200, headers: {} },
body: billingInfoXml,
}
}
@@ -197,7 +197,7 @@ describe('CollectPayPalPastDueInvoice', function () {
const invoiceId = options.url.match(/invoices\/(\d+)\/collect/)[1]
if (invoiceId < 400) {
return {
response: { statusCode: 200, headers: {} },
response: { status: 200, headers: {} },
body: invoiceCollectXml,
}
}