UNPKG

@the-standard/jest-extensions

Version:

Extensions for jest that provide expect extensions for the-standard libraries

18 lines (17 loc) 922 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.JestExceptionExtensionsClient = void 0; const jest_exception_extensions_service_1 = require("../../services/foundations/exceptions/jest-exception-extensions-service"); class JestExceptionExtensionsClient { constructor() { this.jestExceptionExtensionsService = new jest_exception_extensions_service_1.JestExceptionExtensionsService(); } assertActionThrowsExpectedException(action, expectedException) { return this.jestExceptionExtensionsService.assertActionThrowsExpectedException(action, expectedException); } assertActionThrowsExpectedExceptionAsync(asyncAction, expectedException) { return this.jestExceptionExtensionsService.assertActionThrowsExpectedExceptionAsync(asyncAction, expectedException); } } exports.JestExceptionExtensionsClient = JestExceptionExtensionsClient;