Skip to content

Commit

Permalink
test: model instances returned for geo queries
Browse files Browse the repository at this point in the history
  • Loading branch information
biniam committed Feb 13, 2019
1 parent bd6e0dc commit 47bd60b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/basic-querying.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ describe('basic-querying', function() {
if (err) done(err);
users.should.have.property('length', 3);
users[0].name.should.equal('John Lennon');
should(users[0].toObject()).be.a.function;
users[0].addressLoc.should.not.be.null();
done();
});
Expand All @@ -677,6 +678,7 @@ describe('basic-querying', function() {
if (err) done(err);
users.should.have.property('length', 2);
users[0].name.should.equal('John Lennon');
should(users[0].toObject()).be.a.function;
users[0].addressLoc.should.not.be.null();
users[0].vip.should.be.true();
done();
Expand Down Expand Up @@ -708,6 +710,7 @@ describe('basic-querying', function() {
if (err) done(err);
users.should.have.property('length', 1);
users[0].name.should.equal('John Lennon');
should(users[0].toObject()).be.a.function;
users[0].addressLoc.should.not.be.null();
users[0].vip.should.be.true();
users[0].order.should.equal(2);
Expand Down Expand Up @@ -738,6 +741,7 @@ describe('basic-querying', function() {
users.should.have.property('length', 2);
users[0].addressLoc.should.not.be.null();
users[0].name.should.equal('Paul McCartney');
should(users[0].toObject()).be.a.function;
users[1].addressLoc.should.not.equal(null);
users[1].name.should.equal('John Lennon');
done();
Expand Down Expand Up @@ -775,6 +779,7 @@ describe('basic-querying', function() {
users.should.have.property('length', 1);
users[0].addressLoc.should.not.be.null();
users[0].name.should.equal('John Lennon');
should(users[0].toObject()).be.a.function;
users[0].vip.should.be.true();
done();
});
Expand Down

0 comments on commit 47bd60b

Please sign in to comment.