Skip to content

Commit fd3c3f7

Browse files
committed
fixup! test: s/strip/elide/
1 parent 347275f commit fd3c3f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/evasive-transform/test/elide-comment.test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ test('evadeCensor with elideComments preserves automatically-inserted-semicolon
148148
t.is((0, eval)(object.code), undefined);
149149
});
150150

151-
test('evadeCensor with elideComments preserves automatically-inserted-semicolon (ASI)', t => {
151+
test('evadeCensor with stripComments preserves automatically-inserted-semicolon (ASI)', t => {
152152
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.',
154154
);
155155
const comment = `
156156
(() => {
@@ -159,7 +159,8 @@ test('evadeCensor with elideComments preserves automatically-inserted-semicolon
159159
})();
160160
`;
161161
const object = evadeCensorSync(comment, {
162-
elideComments: true,
162+
// @ts-expect-error intentional
163+
stripComments: true,
163164
});
164165
t.is((0, eval)(comment), undefined);
165166
t.is((0, eval)(object.code), undefined);

0 commit comments

Comments
 (0)