Fix tests to not save expected output if we expect the test to fail

This commit is contained in:
Daniel Tschinder 2016-07-11 13:35:50 +02:00
parent 50422c6db1
commit 15a391d305
No known key found for this signature in database
GPG Key ID: 46A883CAEC8A94BD

View File

@ -46,7 +46,7 @@ function runTest(test) {
throw err;
}
if (!test.expect.code) {
if (!test.expect.code && !opts.throws) {
test.expect.loc += "on";
return save(test, ast);
}