pcp-server-nodejs-sdk
Version:
[](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [ => {
test('constructor', () => {
const apiException = new ApiErrorResponseException(404, 'Body');
expect(apiException).toBeDefined();
});
test('constructor with Errors', () => {
const apiError = {
errorCode: 'errorCode',
};
const apiException = new ApiErrorResponseException(404, 'Body', [apiError]);
expect(apiException.getErrors()).toContain(apiError);
});
});
//# sourceMappingURL=ApiErrorResponseException.test.js.map