mirror of
https://github.com/knex/knex.git
synced 2025-12-15 00:57:16 +00:00
minor cleanup
This commit is contained in:
parent
1a47485d33
commit
6cfa41a69f
@ -22,8 +22,7 @@ exports.Client = ServerBase.extend({
|
|||||||
|
|
||||||
dialect: 'postgresql',
|
dialect: 'postgresql',
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {},
|
||||||
},
|
|
||||||
|
|
||||||
runQuery: function(connection, sql, bindings) {
|
runQuery: function(connection, sql, bindings) {
|
||||||
return nodefn.call(connection.query.bind(connection), sql, bindings);
|
return nodefn.call(connection.query.bind(connection), sql, bindings);
|
||||||
|
|||||||
@ -2,7 +2,7 @@ module.exports = function(knex) {
|
|||||||
|
|
||||||
describe('deletes', function () {
|
describe('deletes', function () {
|
||||||
|
|
||||||
it('should delete an item', function(ok) {
|
it('should delete an item', function() {
|
||||||
|
|
||||||
return knex('accounts')
|
return knex('accounts')
|
||||||
.where({'email':'test2@example.com'})
|
.where({'email':'test2@example.com'})
|
||||||
|
|||||||
@ -2,7 +2,7 @@ module.exports = function(knex) {
|
|||||||
|
|
||||||
describe('Updates', function () {
|
describe('Updates', function () {
|
||||||
|
|
||||||
it('should handle updates', function(ok) {
|
it('should handle updates', function() {
|
||||||
return knex('accounts')
|
return knex('accounts')
|
||||||
.logMe()
|
.logMe()
|
||||||
.where('id', 1)
|
.where('id', 1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user