Skip to content

Commit 44e18dc

Browse files
committed
refactor: fix plugin-lighthouse unit tests
1 parent 71a88ee commit 44e18dc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/plugin-lighthouse/src/lib/runner/utils.unit.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,22 +411,22 @@ describe('determineAndSetLogLevel', () => {
411411
it('should set log level to info and return "info" as level if no options are given', () => {
412412
expect(determineAndSetLogLevel()).toBe('info');
413413
expect(log.isVerbose()).toBe(false);
414-
expect(debugLib.enabled('LH:*')).toBe(true);
414+
expect(debugLib.enabled('LH:*')).toBe(false);
415415
expect(debugLib.enabled('LH:*:verbose')).toBe(false);
416416
});
417417

418418
it('should set log level to verbose and return "verbose" as level', () => {
419419
expect(determineAndSetLogLevel({ verbose: true })).toBe('verbose');
420420
expect(log.isVerbose()).toBe(true);
421-
expect(debugLib.enabled('LH:*')).toBe(true);
421+
expect(debugLib.enabled('LH:*')).toBe(false);
422422
expect(debugLib.enabled('LH:*:verbose')).toBe(false);
423423
});
424424

425425
it('should set log level to quiet and return "silent" as level', () => {
426426
expect(determineAndSetLogLevel({ quiet: true })).toBe('silent');
427427
expect(log.isVerbose()).toBe(false);
428-
expect(debugLib.enabled('LH:*')).toBe(true);
429-
expect(debugLib.enabled('-LH:*')).toBe(true);
428+
expect(debugLib.enabled('LH:*')).toBe(false);
429+
expect(debugLib.enabled('-LH:*')).toBe(false);
430430
expect(debugLib.enabled('LH:*:verbose')).toBe(false);
431431
});
432432

@@ -435,7 +435,7 @@ describe('determineAndSetLogLevel', () => {
435435
'verbose',
436436
);
437437
expect(log.isVerbose()).toBe(true);
438-
expect(debugLib.enabled('LH:*')).toBe(true);
438+
expect(debugLib.enabled('LH:*')).toBe(false);
439439
expect(debugLib.enabled('LH:*:verbose')).toBe(false);
440440
});
441441
});

0 commit comments

Comments
 (0)