Skip to content

Commit 0d89a45

Browse files
committed
Add a test to check typeof transformation
1 parent 800c46e commit 0d89a45

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const type = require("./typeof");
2+
3+
it("should not output invalid code", () => {
4+
expect(type).toBe("number");
5+
});
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
typeof 1
2+
module.exports = "number"

0 commit comments

Comments
 (0)