diff options
author | 2022-04-09 20:26:02 -0700 | |
---|---|---|
committer | 2022-04-09 20:26:02 -0700 | |
commit | 764fb636174dc9e8d168ef1ecc14e406ff6053fd (patch) | |
tree | fbb7120ef380568d770d35888a30758c5c6dc9f3 /integration/bunjs-only-snippets/transpiler.test.js | |
parent | 4de7978b2763d95ddcded6ccda9b7b80cca7e8f1 (diff) | |
download | bun-764fb636174dc9e8d168ef1ecc14e406ff6053fd.tar.gz bun-764fb636174dc9e8d168ef1ecc14e406ff6053fd.tar.zst bun-764fb636174dc9e8d168ef1ecc14e406ff6053fd.zip |
Update transpiler.test.js
Diffstat (limited to 'integration/bunjs-only-snippets/transpiler.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/transpiler.test.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/integration/bunjs-only-snippets/transpiler.test.js b/integration/bunjs-only-snippets/transpiler.test.js index 1162c65a7..9d570ea50 100644 --- a/integration/bunjs-only-snippets/transpiler.test.js +++ b/integration/bunjs-only-snippets/transpiler.test.js @@ -1038,6 +1038,10 @@ class Foo { }); describe("simplification", () => { + it("unary operator", () => { + expectPrinted("a = !(b, c)", "a = (b , !c)"); + }); + it("constant folding", () => { expectPrinted("1 && 2", "2"); expectPrinted("1 || 2", "1"); |