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 ( 3fce7a...83f33f )
by Vladimir
30s
created

cors.test.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 13
rs 9.4285
nop 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A cors.test.js ➔ ... ➔ ??? 0 11 1
1
const cors = require('./../../../src/middlewares/cors');
2
3
describe('CORS middleware.', () => {
4
  test('Main test', () => {
5
    const cb = jest.fn();
0 ignored issues
show
Bug introduced by
The variable jest seems to be never declared. If this is a global, consider adding a /** global: jest */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
6
    const res = {
7
      header: jest.fn(),
8
    };
9
10
    cors({}, res, cb);
11
12
    expect(res.header.mock.calls.length).toBe(2);
13
    expect(cb).toHaveBeenCalled();
14
  });
15
});
16