diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index 205caa29..d0d813b3 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -402,7 +402,7 @@ Ox.test = function(file, callback) { Ox.doc(file, function(items) { var tests = []; items.forEach(function(item) { - item.examples.some(function(example) { + item.examples && item.examples.some(function(example) { return example.result; }) && item.examples.forEach(function(example) { Ox.Log('TEST', example.statement);