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:
parent
4889443ed0
commit
04083678c0
|
@ -50,7 +50,7 @@ describe('manipulation', function () {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.exist(p);
|
should.exist(p);
|
||||||
Person.findById(p.id, function (err, person) {
|
Person.findById(p.id, function (err, person) {
|
||||||
person.id.should.equal(p.id);
|
person.id.should.eql(p.id);
|
||||||
person.name.should.equal('Anatoliy');
|
person.name.should.equal('Anatoliy');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
@ -122,7 +122,7 @@ describe('manipulation', function () {
|
||||||
should.exist(p);
|
should.exist(p);
|
||||||
should.not.exists(p.name);
|
should.not.exists(p.name);
|
||||||
Person.findById(p.id, function (err, person) {
|
Person.findById(p.id, function (err, person) {
|
||||||
person.id.should.equal(p.id);
|
person.id.should.eql(p.id);
|
||||||
should.not.exists(person.name);
|
should.not.exists(person.name);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue