Relax "id" checks in test/manipulation.test.js

Use `eql` instead of `equal` to support non-scalar id values
used by MongoDB connector.
This commit is contained in:
Miroslav Bajtoš 2015-02-04 19:20:56 +01:00
parent 4889443ed0
commit 04083678c0
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();
});