Fix requires

This commit is contained in:
2016-04-03 15:47:52 +05:30
parent f0ec8aa9de
commit 37e9beaf17
+6 -6
View File
@@ -1,10 +1,9 @@
/* globals describe, it, */ /* globals describe, it, */
require( __dirname + '/../main-runner' ); require( __dirname + '/../index' );
var SimpleMocha = require( __dirname + '/../test-runner' ); var SimpleMocha = require( __dirname + '/../src/test-runner' );
var DescribeBlock = require( __dirname + '/../src/describe-block' );
var assert = require('assert'); var assert = require('assert');
var utils = require( './data/utils');
var messageLog = utils.messageLog;
describe( 'Simple before block + it s ', function(){ describe( 'Simple before block + it s ', function(){
@@ -22,16 +21,17 @@ describe( 'Simple before block + it s ', function(){
it( 'should have a root describe block', function(){ it( 'should have a root describe block', function(){
assert( describeBlock ); assert( describeBlock );
assert( describeBlock instanceof SimpleMocha.DescribeBlock ); assert( describeBlock instanceof DescribeBlock );
assert.equal( describeBlock.children.length, 1 ); assert.equal( describeBlock.children.length, 1 );
}); });
var firsDescribeBlock = describeBlock.children[0]; var firsDescribeBlock = describeBlock.children[0];
describe( 'rootDescribeBlock', function(){ describe( 'rootDescribeBlock', function(){
it( 'should have child blocks', function(){ it( 'should have child blocks', function(){
assert( firsDescribeBlock instanceof SimpleMocha.DescribeBlock ); assert( firsDescribeBlock instanceof DescribeBlock );
}); });
describe( 'Child describeBlock', function(){ describe( 'Child describeBlock', function(){