From 7538601b79a99db55fc8b420f0ea78bee0ef78de Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 10 Apr 2013 21:09:09 -0700 Subject: [PATCH] Fix the test case so that it passes in the same filter --- test/basic-querying.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basic-querying.test.js b/test/basic-querying.test.js index 15a8f2af..21ffd4ec 100644 --- a/test/basic-querying.test.js +++ b/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());