var AsteroidModule = require('../'); describe('AsteroidModule', function(){ var asteroidModule; beforeEach(function(){ asteroidModule = new AsteroidModule; }); describe('.myMethod', function(){ // example sync test it('should ', function() { asteroidModule.myMethod(); }); // example async test it('should ', function(done) { setTimeout(function () { asteroidModule.myMethod(); done(); }, 0); }); }); });