make expect_stdout work on Node.js 0.12 (#1623)

That particular version of Node.js has messed up error messages, so provide a version-specific workaround.

Also fixed an formatting issue which would cause `expect_stdout` to fail if error message contains excerpts of input.

Apply `expect_stdout` to more applicable tests.
This commit is contained in:
Alex Lam S.L
2017-03-19 12:00:32 +08:00
committed by GitHub
parent 96f8befdd7
commit a3cc3a9b87
20 changed files with 89 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ booleans_evaluate: {
console.log(!0, !0);
console.log(!1, !1);
}
expect_stdout: true
}
booleans_global_defs: {
@@ -29,6 +30,7 @@ booleans_global_defs: {
expect: {
console.log(!0);
}
expect_stdout: true
}
condition_evaluate: {