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/util/getEditorTop.test.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 33
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 33
rs 10
bpm 1
cpm 1
noi 0
1
import expect from 'expect';
2
import {
3
    getEditorTop,
4
    OFFSET
5
} from './../../src/util/getEditorTop';
6
7
describe('getEditorTop utility function', () => {
8
9
    it('Should return null if no node is passed', () => {
10
11
        const rowElement = null;
12
13
        expect(getEditorTop(rowElement))
14
            .toEqual(null);
15
16
    });
17
18
    it('Should return top if a node is passed', () => {
19
20
        const rowElement = {
21
            offsetTop: 30,
22
            clientHeight: 100
23
        };
24
25
        expect(getEditorTop(rowElement))
26
            .toEqual(rowElement.offsetTop
27
                + rowElement.clientHeight
28
                + OFFSET
29
            );
30
31
    });
32
33
});
34