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

Commit e90c8a27 by Jan Aagaard Meier

Fix dao-factory ordering to use the new order API

1 parent 976efb3b
Showing with 1 additions and 1 deletions
...@@ -2492,7 +2492,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -2492,7 +2492,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
it("sorts the results via a date column", function(done) { it("sorts the results via a date column", function(done) {
var self = this var self = this
self.User.create({username: 'user3', data: 'bar', theDate: moment().add('hours', 2).toDate()}).success(function(){ self.User.create({username: 'user3', data: 'bar', theDate: moment().add('hours', 2).toDate()}).success(function(){
self.User.findAll({ order: 'theDate DESC' }).success(function(users) { self.User.findAll({ order: ['theDate', 'DESC'] }).success(function(users) {
expect(users[0].id).to.be.above(users[2].id) expect(users[0].id).to.be.above(users[2].id)
done() done()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!