mirror of
https://github.com/harish2704/simple-mocha.git
synced 2026-09-10 06:21:08 +00:00
Fix requires
This commit is contained in:
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user