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 (8f2e94)
by Joss
01:13
created

test/position.js   A

Complexity

Total Complexity 9
Complexity/F 1

Size

Lines of Code 28
Function Count 9

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
c 2
b 0
f 0
nc 1
dl 0
loc 28
rs 10
wmc 9
mnd 0
bc 9
fnc 9
bpm 1
cpm 1
noi 4
1
'use strict';
2
3
var expect = require('expect.js');
4
5
var Position = require('../lib/position');
6
7
describe('Position', function() {
8
    it('should throw an error when X is not valid', function () {
9
        expect(function() {
10
            new Position({x:false,y:1}, 'N');
11
        }).to.throwException(/Coordinates are not valid/);
12
    });
13
    it('should throw an error when Y is not valid', function () {
14
        expect(function() {
15
            new Position({x:1,y:false}, 'N');
16
        }).to.throwException(/Coordinates are not valid/);
17
    });
18
    it('should throw an error when C is not valid', function () {
19
        expect(function() {
20
            new Position({x:1,y:1}, false);
21
        }).to.throwException(/Cardinal point is not valid/);
22
    });
23
    it('should not throw an error when position is valid', function () {
24
        expect(function() {
25
            new Position({x:1,y:1}, 'N');
26
        }).to.not.throwException();
27
    });
28
});