Skip to content

Commit f59526b

Browse files
authored
Merge pull request webpack#7320 from webpack/fix/7318
Add a test to check typeof transformation
2 parents 800c46e + 0d89a45 commit f59526b

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)