File tree 1 file changed +4
-3
lines changed
packages/evasive-transform/test
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -148,9 +148,9 @@ test('evadeCensor with elideComments preserves automatically-inserted-semicolon
148
148
t . is ( ( 0 , eval ) ( object . code ) , undefined ) ;
149
149
} ) ;
150
150
151
- test ( 'evadeCensor with elideComments preserves automatically-inserted-semicolon (ASI)' , t => {
151
+ test ( 'evadeCensor with stripComments preserves automatically-inserted-semicolon (ASI)' , t => {
152
152
t . log (
153
- 'There is no elideComments option. This is a trip-fall in case this is attempted.' ,
153
+ 'There is no stripComments option. This is a trip-fall in case this is attempted.' ,
154
154
) ;
155
155
const comment = `
156
156
(() => {
@@ -159,7 +159,8 @@ test('evadeCensor with elideComments preserves automatically-inserted-semicolon
159
159
})();
160
160
` ;
161
161
const object = evadeCensorSync ( comment , {
162
- elideComments : true ,
162
+ // @ts -expect-error intentional
163
+ stripComments : true ,
163
164
} ) ;
164
165
t . is ( ( 0 , eval ) ( comment ) , undefined ) ;
165
166
t . is ( ( 0 , eval ) ( object . code ) , undefined ) ;
You can’t perform that action at this time.
0 commit comments