24 lines
538 B
JavaScript
24 lines
538 B
JavaScript
var AsteroidModule = require('../');
|
|
|
|
describe('AsteroidModule', function(){
|
|
var asteroidModule;
|
|
|
|
beforeEach(function(){
|
|
asteroidModule = new AsteroidModule;
|
|
});
|
|
|
|
describe('.myMethod', function(){
|
|
// example sync test
|
|
it('should <description of behavior>', function() {
|
|
asteroidModule.myMethod();
|
|
});
|
|
|
|
// example async test
|
|
it('should <description of behavior>', function(done) {
|
|
setTimeout(function () {
|
|
asteroidModule.myMethod();
|
|
done();
|
|
}, 0);
|
|
});
|
|
});
|
|
}); |