From 04083678c0670df01b4975770d023507ed56131e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Wed, 4 Feb 2015 19:20:56 +0100 Subject: [PATCH] Relax "id" checks in test/manipulation.test.js Use `eql` instead of `equal` to support non-scalar id values used by MongoDB connector. --- test/manipulation.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/manipulation.test.js b/test/manipulation.test.js index fac9698a..8ee21977 100644 --- a/test/manipulation.test.js +++ b/test/manipulation.test.js @@ -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(); });