Skip to content

Commit bebdadf

Browse files
committed
revert test fit
1 parent 7e274ca commit bebdadf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

spec/SecurityCheck.spec.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
const _ = require('lodash');
43
const Utils = require('../lib/Utils');
54
const Config = require('../lib/Config');
65
const request = require('../lib/request');
@@ -325,15 +324,13 @@ describe('Security Check', () => {
325324
});
326325
});
327326

328-
fit('logs report', async () => {
327+
it('logs report', async () => {
329328
const logger = require('../lib/logger').logger;
330329
const logSpy = spyOn(logger, 'warn').and.callThrough();
331330
const checkGroups = [Group];
332331
const runner = new CheckRunner({ checkGroups, enableCheckLog: true });
333332
const report = await runner.run();
334-
const titles = _.flatMap(report.report.groups, group =>
335-
group.checks.map(check => check.title)
336-
);
333+
const titles = report.report.groups.flatMap(group => group.checks.map(check => check.title));
337334
expect(titles.length).toBe(2);
338335

339336
for (const title of titles) {

0 commit comments

Comments
 (0)