2014-09-01 17:19:34 +02:00

23 lines
349 B
JavaScript

/*global describe, it*/
'use strict';
module.exports = function(knex) {
describe('unions', function() {
it('handles unions', function() {
return knex('accounts')
.select('*')
.where('id', '=', 1)
.union(function() {
this.select('*').from('accounts').where('id', 2);
});
});
});
};