mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +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\\""`);
|
||
|
});
|
||
|
});
|