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 ( afb7bc...dee889 )
by Vladimir
32s
created

test/unit/back/routes/index/getRoot.test.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 18
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 18
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A getRoot.test.js ➔ ??? 0 16 1
1
/** global: jest */
2
3
const router = require('./../../../../../src/back/routes/index');
4
5
describe('Index routes.', () => {
6
  test('GET homepage', (done) => {
7
    const request = {
8
      method: 'GET',
9
      url: '/',
10
    };
11
    const response = {
12
      redirect: (targetUrl) => {
13
        expect(targetUrl).toMatch(/.+/);
14
        done();
15
      },
16
    };
17
18
    router.handle(request, response);
19
  });
20
});
21