File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const _ = require ( 'lodash' ) ;
4
3
const Utils = require ( '../lib/Utils' ) ;
5
4
const Config = require ( '../lib/Config' ) ;
6
5
const request = require ( '../lib/request' ) ;
@@ -325,15 +324,13 @@ describe('Security Check', () => {
325
324
} ) ;
326
325
} ) ;
327
326
328
- fit ( 'logs report' , async ( ) => {
327
+ it ( 'logs report' , async ( ) => {
329
328
const logger = require ( '../lib/logger' ) . logger ;
330
329
const logSpy = spyOn ( logger , 'warn' ) . and . callThrough ( ) ;
331
330
const checkGroups = [ Group ] ;
332
331
const runner = new CheckRunner ( { checkGroups, enableCheckLog : true } ) ;
333
332
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 ) ) ;
337
334
expect ( titles . length ) . toBe ( 2 ) ;
338
335
339
336
for ( const title of titles ) {
You can’t perform that action at this time.
0 commit comments