pnz-payments-sdk
Version:
PNZ Payments Account and Transaction API
39 lines (31 loc) • 991 B
text/typescript
/**
* Account and Transaction API SpecificationLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { StandingOrdersController } from '../src';
import { testClient } from './testClient';
import { expectHeadersToMatch, makeApiCall } from './testHelper';
describe('StandingOrdersController', () => {
let controller : StandingOrdersController;
beforeAll(() => {
controller = new StandingOrdersController(testClient);
});
it('should Test GetStandingOrders', async () => {
const response = await makeApiCall(
() => controller.getStandingOrders(
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);
});
});