15 lines
479 B
JavaScript
15 lines
479 B
JavaScript
import NotImplementedException from './not-implemented-exception';
|
|
|
|
describe('NotImplementedException', () => {
|
|
it('instantiates', () => {
|
|
expect(() => new NotImplementedException()).not.toThrow();
|
|
});
|
|
|
|
test.each([1, 'one', { name: '!' }])('Displays title %s', (message) => {
|
|
const error = new NotImplementedException(message);
|
|
|
|
expect(error.name).toStrictEqual('NotImplementedException');
|
|
expect(error.message).toStrictEqual(message.toString());
|
|
});
|
|
});
|