loopback/node_modules/collection/test/collection.test.js

24 lines
510 B
JavaScript
Raw Normal View History

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