Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 28 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | import expect from 'expect'; |
||
2 | |||
3 | import { |
||
4 | DISMISS_ERROR |
||
5 | } from './../../../../src/constants/ActionTypes'; |
||
6 | |||
7 | import { |
||
8 | dismissError |
||
9 | } from './../../../../src/actions/plugins/errorhandler/ErrorHandlerActions'; |
||
10 | |||
11 | describe('The grid dismissError Action', () => { |
||
12 | |||
13 | it('Should dismiss previuos errors', () => { |
||
14 | |||
15 | const action = { |
||
16 | type: DISMISS_ERROR, |
||
17 | stateKey: 'test-grid' |
||
18 | }; |
||
19 | |||
20 | expect(dismissError(action)) |
||
21 | .toEqual({ |
||
22 | type: DISMISS_ERROR, |
||
23 | stateKey: 'test-grid' |
||
24 | }); |
||
25 | |||
26 | }); |
||
27 | |||
28 | }); |
||
29 |