Skip to content

Commit

Permalink
Fix: PaymentOrder test
Browse files Browse the repository at this point in the history
Update test to pass.
Class information is not available at runtime, the type of response is just object.
  • Loading branch information
NullableInt committed Mar 22, 2021
1 parent 6745ab1 commit 5a3d585
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Services/PaymentOrder/__tests__/PaymentOrder.tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as nock from 'nock';
import { PaymentOrder } from "../PaymentOrder";
import { PaymentOrderResponse } from './../models/PaymentOrderResponse';
import PaymentOrderRequestExample from '../__fixtures__/PaymentOrderRequestExample';
import PaymentOrderResponseExample from "../__fixtures__/PaymentOrderResponseExample";

Expand Down Expand Up @@ -34,7 +33,6 @@ describe('PaymentOrder', () => {
it('should be able to create paymentOrder object', async () =>{
const response = await paymentorder.create(PaymentOrderRequestExample);
expect(response).toBeTruthy();
expect(response).toBeInstanceOf(PaymentOrderResponse);
expect(response.paymentOrder.id).toBe(PaymentOrderResponseExample.paymentOrder.id);
});
})

0 comments on commit 5a3d585

Please sign in to comment.