diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/run-tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run-tests.js b/test/run-tests.js index 1f554e11..b70e2291 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -119,8 +119,8 @@ function parse_test(file) { }) ); var stat = node.body; - if (stat instanceof U.AST_BlockStatement) - stat.required = 1; + if (stat instanceof U.AST_BlockStatement && stat.body.length == 1) + stat = stat.body[0]; test[node.label.name] = stat; return true; } |