Fix requires

This commit is contained in:
2016-04-03 15:32:24 +05:30
parent af7a4b670a
commit 1b91b92d2f
4 changed files with 7 additions and 2 deletions
+2
View File
@@ -4,6 +4,7 @@ var ItBlock = require( './it-block' );
var utils = require( './utils' ); var utils = require( './utils' );
var mkAsyncFn = utils.mkAsyncFn; var mkAsyncFn = utils.mkAsyncFn;
var pr = utils.pr; var pr = utils.pr;
var print = utils.print;
var getIndent = utils.getIndent; var getIndent = utils.getIndent;
function DescribeBlock( description, parentBlock ){ function DescribeBlock( description, parentBlock ){
@@ -21,6 +22,7 @@ function DescribeBlock( description, parentBlock ){
this.isSuccess = false; this.isSuccess = false;
} }
DescribeBlock.prototype.__defineGetter__( 'children', function(){ DescribeBlock.prototype.__defineGetter__( 'children', function(){
return this.tasks.filter( function( task ){ return this.tasks.filter( function( task ){
return task instanceof DescribeBlock; return task instanceof DescribeBlock;
+3
View File
@@ -1,4 +1,7 @@
var utils = require( './utils' );
var print = utils.print;
function ItBlock( description, fn ){ function ItBlock( description, fn ){
this.description = description; this.description = description;
+1 -1
View File
@@ -4,7 +4,7 @@ var context = global;
if( context.describe ){ if( context.describe ){
return; return;
} }
var SimpleMocha = require( './index-v1' ); var SimpleMocha = require( './simple-mocha' );
var sm = new SimpleMocha(); var sm = new SimpleMocha();
sm.onLoad = function(){ sm.onLoad = function(){
+1 -1
View File
@@ -1,5 +1,5 @@
var SimpleMocha = require( './index-v1' ); var SimpleMocha = require( './simple-mocha' );
var fs = require('fs'); var fs = require('fs');
SimpleMocha.load = function( fileName ){ SimpleMocha.load = function( fileName ){