aboutsummaryrefslogtreecommitdiff
path: root/test/compress/node_version.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-05-18 11:28:35 +0800
committerGitHub <noreply@github.com>2017-05-18 11:28:35 +0800
commitefcf167e5efc95a82678db2056396dcf94993641 (patch)
tree45bec5ba66ee834d539057dce26069f251fec858 /test/compress/node_version.js
parent6ed90913cae80e55b9575a64a59ef7b1bd06e702 (diff)
downloadtracifyjs-efcf167e5efc95a82678db2056396dcf94993641.tar.gz
tracifyjs-efcf167e5efc95a82678db2056396dcf94993641.zip
make `expect_stdout` node version specific (#1963)
... via semver string on `node_version` label.
Diffstat (limited to 'test/compress/node_version.js')
-rw-r--r--test/compress/node_version.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/compress/node_version.js b/test/compress/node_version.js
new file mode 100644
index 00000000..ad0bfa15
--- /dev/null
+++ b/test/compress/node_version.js
@@ -0,0 +1,12 @@
+eval_let: {
+ input: {
+ eval("let a;");
+ console.log();
+ }
+ expect: {
+ eval("let a;");
+ console.log();
+ }
+ expect_stdout: ""
+ node_version: ">=6"
+}