Skip to content

Commit

Permalink
chore: updating some test mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov committed Sep 27, 2023
1 parent 3bfcc0b commit 1dcc609
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/open-payments/src/client/incoming-payment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('incoming-payment', (): void => {

describe('getIncomingPayment', (): void => {
test('returns incoming payment if passes validation', async (): Promise<void> => {
const incomingPayment = mockIncomingPayment()
const incomingPayment = mockIncomingPaymentWithPaymentMethods()

nock(walletAddress)
.get('/incoming-payments/1')
Expand All @@ -67,7 +67,7 @@ describe('incoming-payment', (): void => {
})

test('throws if incoming payment does not pass validation', async (): Promise<void> => {
const incomingPayment = mockIncomingPayment({
const incomingPayment = mockIncomingPaymentWithPaymentMethods({
incomingAmount: {
assetCode: 'USD',
assetScale: 2,
Expand Down Expand Up @@ -100,7 +100,7 @@ describe('incoming-payment', (): void => {
})

test('throws if incoming payment does not pass open api validation', async (): Promise<void> => {
const incomingPayment = mockIncomingPayment()
const incomingPayment = mockIncomingPaymentWithPaymentMethods()

nock(walletAddress)
.get('/incoming-payments/1')
Expand Down

0 comments on commit 1dcc609

Please sign in to comment.