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