loopback/node_modules/resource/test/resource.test.js

24 lines
496 B
JavaScript
Raw Normal View History

2013-04-09 18:33:29 +00:00
var Resource = require('../');
describe('Resource', function(){
var resource;
beforeEach(function(){
resource = new Resource;
});
describe('.myMethod', function(){
// example sync test
it('should <description of behavior>', function() {
resource.myMethod();
});
// example async test
it('should <description of behavior>', function(done) {
setTimeout(function () {
resource.myMethod();
done();
}, 0);
});
});
});