knex/test/lib/aggregate.js
2013-05-08 20:16:39 -04:00

12 lines
175 B
JavaScript

module.exports = function(Knex, dbName, handler, type) {
it('has a sum', function(ok) {
Knex('accounts')
.sum('logins')
.then(handler(ok), ok);
});
};