Add a test to check typeof transformation

This commit is contained in:
Florent Cailhol 2018-05-16 13:03:38 +02:00
parent 800c46e89c
commit 0d89a45403
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,5 @@
const type = require("./typeof");
it("should not output invalid code", () => {
expect(type).toBe("number");
});

View File

@ -0,0 +1,2 @@
typeof 1
module.exports = "number"