UNPKG

pcp-server-nodejs-sdk

Version:

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-server-nodeJS-SDK&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [![Coverage](https://sonarcloud.io/api/pr

16 lines 663 B
import { describe, expect, test } from 'vitest'; import { ApiErrorResponseException } from './ApiErrorResponseException.js'; describe('ApiErrorResponseException', () => { 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