fix a bug in Ox.test
This commit is contained in:
parent
dfbbcd113b
commit
c56b7cc9ed
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue