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
Push — master ( 043e72...5d2753 )
by Benjamin
06:48 queued 02:54
created

test/util/prefix.test.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 22
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 3
c 1
b 0
f 0
nc 1
mnd 0
bc 3
fnc 3
dl 0
loc 22
rs 10
bpm 1
cpm 1
noi 0
1
import expect from 'expect';
2
import { prefix } from './../../src/util/prefix';
3
4
describe('prefix utility function', () => {
5
6
    it('Should work with a destructured array of classes', () => {
7
        const classes = ['react', 'redux', 'grid', 'test'];
8
9
        expect(
10
            prefix(...classes)
11
        ).toEqual(
12
            'react-grid-react react-grid-redux react-grid-grid react-grid-test'
13
        );
14
    });
15
16
    it('Should work with a single class', () => {
17
        const cls = 'test-class';
18
19
        expect(prefix(cls)).toEqual('react-grid-test-class');
20
    });
21
22
});