不要怂,就是干,撸起袖子干!

Commit 5203dfcf by Sascha Depold

minor refactoring

1 parent 6de822be
Showing with 3 additions and 2 deletions
...@@ -69,7 +69,7 @@ module.exports = { ...@@ -69,7 +69,7 @@ module.exports = {
assert.equal(query, "UPDATE Foo SET foo=1 WHERE id = 2") assert.equal(query, "UPDATE Foo SET foo=1 WHERE id = 2")
}, },
'sqlQueryFor: delete': function(assert) { 'sqlQueryFor: delete': function(assert) {
var query = Sequelize.sqlQueryFor('delete', {table: 'Foo', id: 2}) var query = Sequelize.sqlQueryFor('delete', {table: 'Foo', where: "id=2"})
assert.equal(query, "DELETE FROM Foo WHERE id = 2 LIMIT 1") assert.equal(query, "DELETE FROM Foo WHERE id=2 LIMIT 1")
} }
} }
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!