Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 23 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | import * as nAutoMetrics from '@financial-times/n-auto-metrics'; |
||
2 | |||
3 | import setupMonitor from '../setup'; |
||
4 | import monitor from '../operation'; |
||
5 | |||
6 | describe('monitor', () => { |
||
7 | afterEach(() => { |
||
8 | jest.resetAllMocks(); |
||
|
|||
9 | }); |
||
10 | |||
11 | const app = { |
||
12 | use: jest.fn(), |
||
13 | }; |
||
14 | // const metrics = {}; |
||
15 | // const logger = {}; |
||
16 | |||
17 | it.skip('disable autoNext if it was set to false', () => { |
||
18 | setupMonitor({ app, autoNext: false }); |
||
19 | const targetOperation = () => {}; |
||
20 | monitor(targetOperation); |
||
21 | expect(nAutoMetrics.compose.mock.calls).toMatchSnapshot(); |
||
22 | }); |
||
23 | }); |
||
24 |
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.