From 15a391d30511c9dbd829aa8bee52a7063c6b6cd5 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Mon, 11 Jul 2016 13:35:50 +0200 Subject: [PATCH] Fix tests to not save expected output if we expect the test to fail --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index be432625b0..efc6fe5ae5 100644 --- a/test/index.js +++ b/test/index.js @@ -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); }