Fix tests to not save expected output if we expect the test to fail
This commit is contained in:
parent
50422c6db1
commit
15a391d305
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user