Fix the test case so that it passes in the same filter
This commit is contained in:
parent
81ad2a696e
commit
7538601b79
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue