var context = global; if( context.describe ){ return; } var SimpleMocha = require( './index-v1' ); var sm = new SimpleMocha(); sm.onLoad = function(){ sm.rootDescribeBlock.run( function( err ){ console.log( err ? 'Finished with error' : 'Finished Successfully', err ); }); } context.describe = sm.describe; context.it = sm.it; context.before = sm.before; context.after = sm.after; context.beforeEach = sm.beforeEach; context.afterEach = sm.afterEach;