Permalink
Browse files

Fix the test case so that it passes in the same filter

  • Loading branch information...
1 parent 81ad2a6 commit 7538601b79a99db55fc8b420f0ea78bee0ef78de @raymondfeng raymondfeng committed Apr 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/basic-querying.test.js
@@ -145,7 +145,7 @@ describe('basic-querying', function() {
it('should find first record (default sort by id)', function(done) {
User.all({order: 'id'}, function(err, users) {
- User.findOne(function(e, u) {
+ User.findOne({order: 'id'}, function(e, u) {
should.not.exist(e);
should.exist(u);
u.id.toString().should.equal(users[0].id.toString());

0 comments on commit 7538601

Please sign in to comment.