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

13 lines 620 B
import { describe, expect, test } from 'vitest'; import { ApiResponseRetrievalException } from './ApiResponseRetrievalException.js'; describe('ApiResponseRetrievalException', () => { test('constructor', () => { const apiException = new ApiResponseRetrievalException(404, 'Body'); expect(apiException).toBeDefined(); }); test('constructor with cause', () => { const apiException = new ApiResponseRetrievalException(404, 'Body', new Error('Cause')); expect(apiException.stack).toContain('Error: Cause'); }); }); //# sourceMappingURL=ApiResponseRetrievalException.test.js.map