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

This commit is contained in:
Raymond Feng 2013-04-10 21:09:09 -07:00
parent 81ad2a696e
commit 7538601b79
1 changed files with 1 additions and 1 deletions

View File

@ -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());