Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created May 5, 2012 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommedema/2601189 to your computer and use it in GitHub Desktop.
Save tommedema/2601189 to your computer and use it in GitHub Desktop.
require('should');
var bootutil = require('/src/boot/util'),
EventEmitter2 = require('eventemitter2').EventEmitter2;
describe('boot util', function() {
it('should load existing test routines without mediator', function() {
bootutil.loadRoutines('./testroutines-nomediator', function(err, routines) {
err.should.not.exist();
routines.should.be.an.instanceof(Array);
routines.should.have.lengthOf(2);
global.TESTROUTINELOADED.should.be.ok;
global.TESTROUTINELOADEDRECURSIVELY.should.be.ok;
});
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment