v1/test/app.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 24
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 14
mnd 0
bc 0
fnc 4
dl 0
loc 24
ccs 12
cts 12
cp 1
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
/* global it describe */
2
3 1
process.env.NODE_ENV = 'test';
4
5
//Require the dev-dependencies
6 1
const chai = require('chai');
7 1
const chaiHttp = require('chai-http');
8 1
const server = require('../../app.js');
9
10 1
chai.should();
11
12 1
chai.use(chaiHttp);
13
14 1
describe('app', () => {
15 1
    describe('GET /', () => {
16 1
        it('200 HAPPY PATH', (done) => {
17 1
            chai.request(server)
18
                .get("/docs")
19
                .end((err, res) => {
20 1
                    res.should.have.status(200);
21
22 1
                    done();
23
                });
24
        });
25
    });
26
});
27