GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (5d2753)
by Benjamin
17:29 queued 13:40
created

test/actions/plugins/bulkactions/ToolbarActions.test.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 47
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 0
wmc 3
c 1
b 0
f 1
nc 1
mnd 0
bc 3
fnc 3
dl 0
loc 47
rs 10
bpm 1
cpm 1
noi 0
1
import expect from 'expect';
2
3
import {
4
    REMOVE_TOOLBAR
5
} from './../../../../src/constants/ActionTypes';
6
7
import {
8
    removeToolbar
9
} from './../../../../src/actions/plugins/bulkactions/ToolbarActions';
10
11
describe('The grid removeToolbar Action', () => {
12
13
    it('Should remove the toolbar', () => {
14
15
        const action = {
16
            type: REMOVE_TOOLBAR,
17
            state: true,
18
            stateKey: 'test-grid'
19
        };
20
21
        expect(removeToolbar(action))
22
            .toEqual({
23
                type: REMOVE_TOOLBAR,
24
                value: true,
25
                stateKey: 'test-grid'
26
            });
27
28
    });
29
30
    it('Should show the toolbar', () => {
31
32
        const action = {
33
            type: REMOVE_TOOLBAR,
34
            state: false,
35
            stateKey: 'test-grid'
36
        };
37
38
        expect(removeToolbar(action))
39
            .toEqual({
40
                type: REMOVE_TOOLBAR,
41
                value: false,
42
                stateKey: 'test-grid'
43
            });
44
45
    });
46
47
});
48