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 ( 250178...1a4cdb )
by Vladimir
33s
created

getStreamId.test.js ➔ ... ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 15
rs 9.4285
1
/** global: jest */
2
3
const router = require('./../../../../src/routes/index');
4
5
describe('Index routes.', () => {
6
  test('GET page by streamId', (done) => {
7
    const request = {
8
      method: 'GET',
9
      url: '/testId',
10
    };
11
    const response = {
12
      render: (tpl, data) => {
13
        expect(tpl).toBe('index');
14
        expect(typeof data).toBe('object');
15
        done();
16
      },
17
    };
18
19
    router.handle(request, response);
20
  });
21
});
22