From 5a3d585d58b85d5353f9073aa842609bcb1864b4 Mon Sep 17 00:00:00 2001 From: Daniel Granerud <42067409+NullableInt@users.noreply.github.com> Date: Mon, 22 Mar 2021 14:05:55 +0100 Subject: [PATCH] Fix: PaymentOrder test Update test to pass. Class information is not available at runtime, the type of response is just object. --- src/Services/PaymentOrder/__tests__/PaymentOrder.tests.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Services/PaymentOrder/__tests__/PaymentOrder.tests.ts b/src/Services/PaymentOrder/__tests__/PaymentOrder.tests.ts index cac9151c..bdf3fe5a 100644 --- a/src/Services/PaymentOrder/__tests__/PaymentOrder.tests.ts +++ b/src/Services/PaymentOrder/__tests__/PaymentOrder.tests.ts @@ -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"; @@ -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); }); })