From 73d022398a81f1e293c411ad377570668ea88489 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 8 Dec 2014 16:18:42 -0800 Subject: [PATCH] Relax the id comparison --- test/relations.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/relations.test.js b/test/relations.test.js index 83186378..e9313acc 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -1005,7 +1005,7 @@ describe('relations', function () { author.avatar.create({ name: 'Avatar' }, function (err, p) { should.not.exist(err); should.exist(p); - p.oid.should.equal(author.username); + p.oid.toString().should.equal(author.username.toString()); p.type.should.equal('Author'); done(); }); @@ -1017,7 +1017,7 @@ describe('relations', function () { reader.mugshot.create({ name: 'Mugshot' }, function (err, p) { should.not.exist(err); should.exist(p); - p.oid.should.equal(reader.username); + p.oid.toString().should.equal(reader.username.toString()); p.type.should.equal('Reader'); done(); });