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.
Passed
Branch feature/parse-icls-file (ad7e7c)
by Cedric
01:10
created

utils.spec.js ➔ ... ➔ describe(ꞌautoCastꞌ)   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 22
rs 9.2
1
'use strict';
2
const expect = require('chai').expect;
3
const autoCast = require('../../src/lib/utils').autoCast;
4
5
6
describe('utils', function(){
7
8
    describe('autoCast', function(){
9
        it('should cast to an integer', function(){
10
            expect(autoCast("42")).to.equal(42);
11
        })
12
13
        it('should cast to a float', function(){
14
            expect(autoCast("42.0")).to.equal(42.0);
15
            expect(autoCast("42.42")).to.equal(42.42);
16
        })
17
18
        it('should cast to a boolean', function(){
19
            expect(autoCast("true")).to.be.true;
0 ignored issues
show
introduced by
The result of the property access to expect(autoCast("true")).to.be.true is not used.
Loading history...
20
            expect(autoCast("True")).to.be.true;
0 ignored issues
show
introduced by
The result of the property access to expect(autoCast("True")).to.be.true is not used.
Loading history...
21
22
            expect(autoCast("false")).to.be.false;
0 ignored issues
show
introduced by
The result of the property access to expect(autoCast("false")).to.be.false is not used.
Loading history...
23
            expect(autoCast("False")).to.be.false;
0 ignored issues
show
introduced by
The result of the property access to expect(autoCast("False")).to.be.false is not used.
Loading history...
24
        })
25
26
        it('should return a string if no other type matches', function(){
27
            expect(autoCast('icls')).to.equal('icls');
28
        })
29
    });
30
31
});
32