loopback/test/asteroid.test.js

24 lines
496 B
JavaScript
Raw Normal View History

2013-04-09 16:02:36 +00:00
var Asteroid = require('../');
describe('Asteroid', function(){
var asteroid;
beforeEach(function(){
asteroid = new Asteroid;
});
describe('.myMethod', function(){
// example sync test
it('should <description of behavior>', function() {
asteroid.myMethod();
});
// example async test
it('should <description of behavior>', function(done) {
setTimeout(function () {
asteroid.myMethod();
done();
}, 0);
});
});
});