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

test/unit/log/routes/index/postStreamId.test.js   A

Complexity

Total Complexity 5
Complexity/F 1

Size

Lines of Code 24
Function Count 5

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 24
rs 10
wmc 5
mnd 0
bc 4
fnc 5
bpm 0.8
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A postStreamId.test.js ➔ ??? 0 20 1
1
/** global: jest */
2
3
const jsonRequest = require('./../../../stubs/routes/jsonRequest');
4
const plainRequest = require('./../../../stubs/routes/plainRequest');
5
const router = require('./../../../../../src/routes/index');
6
7
describe('Index routes.', () => {
8
  test('POST plain text into page with certain streamId', (done) => {
9
    const response = { status: jest.fn(), send: () => done() };
10
11
    router.handle(plainRequest, response);
12
  });
13
14
  test('POST JSON data into page with certain streamId', (done) => {
15
    const response = { status: jest.fn(), send: jest.fn() };
16
    global.socket = {
17
      emit: (type, data) => {
18
        expect(type).toBe('log');
19
        expect(typeof data).toBe('object');
20
        done();
21
      },
22
    };
23
24
    router.handle(jsonRequest, response);
25
  });
26
});
27