var DataSource = require('../'); describe('DataSource', function(){ var connection; beforeEach(function(){ dataSource = new DataSource; }); describe('.myMethod', function(){ // example sync test it('should ', function() { dataSource.myMethod(); }); // example async test it('should ', function(done) { setTimeout(function () { dataSource.myMethod(); done(); }, 0); }); }); });