@@ -14,27 +14,27 @@ describe('Logger', () => {
14
14
describe ( 'when using filterLogLevels' , ( ) => {
15
15
it ( 'should correctly parse an exclusive range' , ( ) => {
16
16
const returned = filterLogLevels ( '>warn' ) ;
17
- expect ( returned ) . toEqual ( [ 'error' , 'fatal' ] ) ;
17
+ expect ( returned ) . to . deep . equal ( [ 'error' , 'fatal' ] ) ;
18
18
} ) ;
19
19
20
20
it ( 'should correctly parse an inclusive range' , ( ) => {
21
21
const returned = filterLogLevels ( '>=warn' ) ;
22
- expect ( returned ) . toEqual ( [ 'warn' , 'error' , 'fatal' ] ) ;
22
+ expect ( returned ) . to . deep . equal ( [ 'warn' , 'error' , 'fatal' ] ) ;
23
23
} ) ;
24
24
25
25
it ( 'should correctly parse a string list' , ( ) => {
26
26
const returned = filterLogLevels ( 'verbose,warn,fatal' ) ;
27
- expect ( returned ) . toEqual ( [ 'verbose' , 'warn' , 'fatal' ] ) ;
27
+ expect ( returned ) . to . deep . equal ( [ 'verbose' , 'warn' , 'fatal' ] ) ;
28
28
} ) ;
29
29
30
30
it ( 'should correctly parse a single log level' , ( ) => {
31
31
const returned = filterLogLevels ( 'debug' ) ;
32
- expect ( returned ) . toEqual ( [ 'debug' ] ) ;
32
+ expect ( returned ) . to . deep . equal ( [ 'debug' ] ) ;
33
33
} ) ;
34
34
35
35
it ( 'should return all otherwise' , ( ) => {
36
36
const returned = filterLogLevels ( ) ;
37
- expect ( returned ) . toEqual ( [
37
+ expect ( returned ) . to . deep . equal ( [
38
38
'verbose' ,
39
39
'debug' ,
40
40
'log' ,
0 commit comments