mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 15:19:58 +08:00
9 lines
313 B
JavaScript
9 lines
313 B
JavaScript
|
import UnreachableException from '../unreachableException';
|
||
|
|
||
|
describe('UnreachableException', () => {
|
||
|
it('error thrown matches snapshot', () => {
|
||
|
const exception = new UnreachableException('some value');
|
||
|
expect(exception.message).toMatchInlineSnapshot(`"unreachable case: \\"some value\\""`);
|
||
|
});
|
||
|
});
|