handle runtime errors in expect_stdout (#1618)

allow test to pass if both `input` and `expect` throws the same kind of error
This commit is contained in:
Alex Lam S.L
2017-03-18 02:33:51 +08:00
committed by GitHub
parent fb092839c2
commit 0489d6de64
2 changed files with 38 additions and 35 deletions

View File

@@ -85,3 +85,15 @@ unsafe_undefined: {
}
expect_stdout: true
}
runtime_error: {
input: {
const a = 1;
console.log(a++);
}
expect: {
const a = 1;
console.log(a++);
}
expect_stdout: true
}