From 024bff6a91feb0fbc82f2844dff0300530f94d3d Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Tue, 8 Mar 2016 20:39:25 -0500 Subject: [PATCH] Fix tests for mysql --- test/manipulation.test.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/manipulation.test.js b/test/manipulation.test.js index 05d212ab..e5c3d230 100644 --- a/test/manipulation.test.js +++ b/test/manipulation.test.js @@ -767,8 +767,8 @@ describe('manipulation', function () { .then(function (p) { p.should.not.have.property('_id'); p.title.should.equal('b'); - p.should.have.property('content', undefined); - p.should.have.property('comments', undefined); + should.not.exist(p.content); + should.not.exist(p.comments); done(); }); }); @@ -797,8 +797,8 @@ describe('manipulation', function () { .then(function (p) { p.should.not.have.property('_id'); p.title.should.equal('b'); - p.should.have.property('content', undefined); - p.should.have.property('comments', undefined); + should.not.exist(p.content); + should.not.exist(p.comments); done(); }); }); @@ -826,8 +826,8 @@ describe('manipulation', function () { p.id.should.eql(post.id); p.should.not.have.property('_id'); p.title.should.equal('b'); - p.should.have.property('content', undefined); - p.should.have.property('comments', undefined); + should.not.exist(p.content); + should.not.exist(p.comments); done(); }); }); @@ -855,8 +855,8 @@ describe('manipulation', function () { p.id.should.eql(post.id); p.should.not.have.property('_id'); p.title.should.equal('b'); - p.should.have.property('content', undefined); - p.should.have.property('comments', undefined); + should.not.exist(p.content); + should.not.exist(p.comments); done(); }); }); @@ -939,7 +939,7 @@ describe('manipulation', function () { return Post.findById(postInstance.id) .then(function (p) { p.title.should.equal('b'); - p.should.have.property('content', undefined); + should.not.exist(p.content); done(); }); }); @@ -959,7 +959,7 @@ describe('manipulation', function () { return Post.findById(postInstance.id) .then(function (p) { p.title.should.equal('b'); - p.should.have.property('content', undefined); + should.not.exist(p.content); done(); }); });