Test for aggregate function with output name.

This commit is contained in:
Luigy Leon 2013-11-23 13:18:07 -05:00
parent bbd50a6514
commit 91ce6d9121

View File

@ -121,6 +121,15 @@ describe('Builder', function () {
}); });
it('should call toString correctly on count() with output name', function() {
var output = "select count(`id`) as `count` from `users`";
expect(builder.from('users').count('id as count').toString()).to.equal(output);
});
}); });
describe('clone', function() { describe('clone', function() {