loopback/node_modules/asteroid-module/test/asteroid-module.test.js

24 lines
538 B
JavaScript
Raw Normal View History

2013-04-09 18:33:29 +00:00
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);
});
});
});