aboutsummaryrefslogtreecommitdiff
path: root/test/run-tests.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-07 11:22:01 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-07 11:22:01 +0300
commitb77574ea1c25e2630dcde000ae0fa32b01f8311e (patch)
tree25d0596d63efb0ff399389baa31a6dc880199401 /test/run-tests.js
parent9bb1a84d6bef8fa95d025d65bd0c2772bceca404 (diff)
downloadtracifyjs-b77574ea1c25e2630dcde000ae0fa32b01f8311e.tar.gz
tracifyjs-b77574ea1c25e2630dcde000ae0fa32b01f8311e.zip
fixed tests (need to drop the toplevel block in "expected" if it's a single statement)
Diffstat (limited to 'test/run-tests.js')
-rwxr-xr-xtest/run-tests.js4
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;
}