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

Commit 4e462a75 by Sascha Depold

Test for find and findAll

1 parent 0cd08d93
Showing with 3 additions and 1 deletions
...@@ -119,8 +119,9 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -119,8 +119,9 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
}) })
}) })
;(['find', 'findAll']).forEach(function(finderMethod) {
it('correctly handles complex combinations', function(done) { it('correctly handles complex combinations', function(done) {
this.User.find({ this.User[finderMethod]({
where: [ where: [
42, "2=2", ["1=?", 1], { username: "foo" }, 42, "2=2", ["1=?", 1], { username: "foo" },
Sequelize.or( Sequelize.or(
...@@ -175,4 +176,5 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -175,4 +176,5 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
}) })
}) })
}) })
})
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!