2020-04-26 18:22:09 +00:00
|
|
|
import NotImplementedException from './not-implemented-exception';
|
|
|
|
|
|
|
|
describe('NotImplementedException', () => {
|
|
|
|
it('instantiates', () => {
|
|
|
|
expect(() => new NotImplementedException()).not.toThrow();
|
|
|
|
});
|
|
|
|
|
2020-05-01 14:52:08 +00:00
|
|
|
test.each([1, 'one', { name: '!' }])('Displays title %s', (message) => {
|
2020-04-26 18:22:09 +00:00
|
|
|
const error = new NotImplementedException(message);
|
|
|
|
|
|
|
|
expect(error.name).toStrictEqual('NotImplementedException');
|
|
|
|
expect(error.message).toStrictEqual(message.toString());
|
|
|
|
});
|
|
|
|
});
|