UNPKG

pnz-payments-sdk

Version:

PNZ Payments Account and Transaction API

41 lines (33 loc) 1.02 kB
/** * Account and Transaction API SpecificationLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { TransactionsController } from '../src'; import { testClient } from './testClient'; import { expectHeadersToMatch, makeApiCall } from './testHelper'; describe('TransactionsController', () => { let controller : TransactionsController; beforeAll(() => { controller = new TransactionsController(testClient); }); it('should Test GetTransactions', async () => { const response = await makeApiCall( () => controller.getTransactions( undefined, undefined, undefined, undefined, undefined, undefined, undefined ) ); expect(response.statusCode).toBe(200); const expectedHeaders = { 'x-fapi-interaction-id': ['', false], 'Content-Type': ['application/json; charset=utf-8', true], }; expectHeadersToMatch(response.headers, expectedHeaders); }); });