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