loopback/node_modules/data-source/test/data-source.test.js

24 lines
510 B
JavaScript
Raw Normal View History

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