26 lines
518 B
JavaScript
Raw Normal View History

module.exports = function(knex) {
describe('Deletes', function () {
it('should handle deletes', function() {
return knex('accounts')
.where('id', 1)
2014-04-16 02:50:19 -04:00
.del()
.testSql(function(tester) {
tester('postgresql');
});
});
it('should allow returning for deletes in postgresql', function() {
return knex('accounts')
.where('id', 2)
2014-04-16 02:50:19 -04:00
.del('*')
.testSql(function(tester) {
tester('postgresql');
});
});
});
};