don't eval tests if there is only a script tag
This commit is contained in:
parent
eb9cd1e397
commit
8a7e0dff11
1 changed files with 3 additions and 1 deletions
|
@ -402,7 +402,9 @@ Ox.test = function(file, callback) {
|
|||
Ox.doc(file, function(items) {
|
||||
var tests = [];
|
||||
items.forEach(function(item) {
|
||||
item.examples && item.examples.forEach(function(example) {
|
||||
item.examples.some(function(example) {
|
||||
return example.result;
|
||||
}) && item.examples.forEach(function(example) {
|
||||
Ox.Log('TEST', example.statement);
|
||||
var actual = eval(example.statement);
|
||||
if (example.result) {
|
||||
|
|
Loading…
Reference in a new issue