Skip to content

Commit 3fce9cb

Browse files
committed
Tests: Add all handlers all the time
1 parent 6483d71 commit 3fce9cb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/esrap.test.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,7 @@ for (const dir of fs.readdirSync(`${__dirname}/samples`)) {
8888
};
8989
}
9090

91-
opts.handlers = { ...ecmascript };
92-
93-
if (tsMode) {
94-
opts.handlers = {...opts.handlers, ...typescript};
95-
}
96-
97-
if (jsxMode) {
98-
opts.handlers = {...opts.handlers, ...jsx};
99-
}
91+
opts.handlers = { ...ecmascript, ...typescript, ...jsx };
10092

10193
const { code, map } = print(ast, opts);
10294

0 commit comments

Comments
 (0)