Skip to content

Commit

Permalink
- Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Apr 8, 2024
1 parent af71eb0 commit f0f87b5
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions test/services/billing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,23 @@ describe('Billing Service', function () {
requestMiddleware: (request) => {
return new MockMiddleware(request, [
new MockRequest(
new MockRequestMatchRule('GET', 'v2\\/payment_methods$'),
new MockRequestResponseInfo(200, {
id: 'summary_123',
primary_payment_method: {
id: 'card_123',
last4: '1234',
// No object field, force use of id prefix to determine type
},
secondary_payment_method: {
id: 'bank_123',
bank_name: 'Mock Bank',
// No object field, force use of id prefix to determine type
},
}),
new MockRequestMatchRule('GET', 'v2\\/payment_methods$'),
new MockRequestResponseInfo(200, {
id: 'summary_123',
primary_payment_method: {
id: 'card_123',
last4: '1234',
// No object field, force use of id prefix to determine type
},
secondary_payment_method: {
id: 'bank_123',
bank_name: 'Mock Bank',
// No object field, force use of id prefix to determine type
},
}),
),
])}
]);
},
});

const paymentInfo = await this.client.Billing._getPaymentInfo('primary');
Expand All @@ -113,4 +114,4 @@ describe('Billing Service', function () {

expect(paymentInfo2).to.deep.equal(['bank_accounts', 'bank_123']);
});
});
});

0 comments on commit f0f87b5

Please sign in to comment.