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 ( 78dc15...09f70f )
by Vladimir
38s
created

xPoweredBy.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
nop 0
dl 0
loc 13
rs 9.4285
1
const xPoweredBy = require('./../../../../src/middlewares/xPoweredBy');
2
3
describe('X-Powered-By middleware.', () => {
4
  test('Main test', () => {
5
    /** global: jest */
6
7
    const cb = jest.fn();
8
    const res = {
9
      removeHeader: jest.fn(),
10
    };
11
12
    xPoweredBy({}, res, cb);
13
14
    expect(res.removeHeader).toHaveBeenCalled();
15
    expect(cb).toHaveBeenCalled();
16
  });
17
});
18