Merge pull request #428 from strongloop/fix/manipulation-tests-in-mongodb

Relax "id" checks in test/manipulation.test.js
This commit is contained in:
Miroslav Bajtoš 2015-02-04 19:27:12 +01:00
commit c013ae4d38
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ describe('manipulation', function () {
should.not.exist(err);
should.exist(p);
Person.findById(p.id, function (err, person) {
person.id.should.equal(p.id);
person.id.should.eql(p.id);
person.name.should.equal('Anatoliy');
done();
});
@ -122,7 +122,7 @@ describe('manipulation', function () {
should.exist(p);
should.not.exists(p.name);
Person.findById(p.id, function (err, person) {
person.id.should.equal(p.id);
person.id.should.eql(p.id);
should.not.exists(person.name);
done();
});