@@ -37,7 +37,7 @@ test('Comment token test', () => {
37
37
] . join ( `\n` ) ) ;
38
38
39
39
expect ( tokens . length ) . toBe ( 12 ) ;
40
- expect ( tokens . some ( t => t . value === `--hello: world!!!: coolness` ) ) ;
40
+ expect ( tokens . some ( t => t . value === `--hello: world!!!: coolness` ) ) . toBeTruthy ( ) ;
41
41
} ) ;
42
42
43
43
test ( 'New line (\\n) and comments test' , ( ) => {
@@ -49,7 +49,7 @@ test('New line (\\n) and comments test', () => {
49
49
] . join ( `\n` ) ) ;
50
50
51
51
expect ( tokens . length ) . toBe ( 5 ) ;
52
- expect ( tokens [ 3 ] . type === `newline` ) ;
52
+ expect ( tokens [ 2 ] . type ) . toBe ( `newline` ) ;
53
53
} ) ;
54
54
55
55
test ( 'New line (\\r\\n) and comments test' , ( ) => {
@@ -61,7 +61,7 @@ test('New line (\\r\\n) and comments test', () => {
61
61
] . join ( `\r\n` ) ) ;
62
62
63
63
expect ( tokens . length ) . toBe ( 5 ) ;
64
- expect ( tokens [ 3 ] . type === `newline` ) ;
64
+ expect ( tokens [ 2 ] . type ) . toBe ( `newline` ) ;
65
65
} ) ;
66
66
67
67
test ( `Delimited names` , ( ) => {
@@ -72,13 +72,13 @@ test(`Delimited names`, () => {
72
72
73
73
expect ( tokens . length ) . toBe ( 22 ) ;
74
74
75
- expect ( tokens [ 2 ] . type === `sqlName` ) ;
76
- expect ( tokens [ 2 ] . value === `"TestDelimiters"` ) ;
75
+ expect ( tokens [ 2 ] . type ) . toBe ( `sqlName` ) ;
76
+ expect ( tokens [ 2 ] . value ) . toBe ( `"TestDelimiters"` ) ;
77
77
78
- expect ( tokens [ 3 ] . type === `dot` ) ;
78
+ expect ( tokens [ 3 ] . type ) . toBe ( `dot` ) ;
79
79
80
- expect ( tokens [ 4 ] . type === `sqlName` ) ;
81
- expect ( tokens [ 4 ] . value === `"Delimited Table"` ) ;
80
+ expect ( tokens [ 4 ] . type ) . toBe ( `sqlName` ) ;
81
+ expect ( tokens [ 4 ] . value ) . toBe ( `"Delimited Table"` ) ;
82
82
} ) ;
83
83
84
84
test ( `Block comments` , ( ) => {
0 commit comments