fix a bug in Ox.test

This commit is contained in:
rolux 2012-05-25 19:28:17 +02:00
parent dfbbcd113b
commit c56b7cc9ed

View file

@ -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);