Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 11 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import React from 'react' |
||
2 | import { DataException, EditorException } from '../../src/components/Exceptions.js' |
||
3 | |||
4 | it('run exceptions correctly', () => { |
||
5 | expect(() => { |
||
6 | throw new DataException() |
||
7 | }).toThrow() |
||
8 | expect(() => { |
||
9 | throw new EditorException() |
||
10 | }).toThrow() |
||
11 | }) |