From f91399a3077f929e608f455b821224b4505e2112 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 16 Mar 2015 09:26:03 -0700 Subject: [PATCH] Fix the test case so that at least one property is to be changed --- test/basic-querying.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/basic-querying.test.js b/test/basic-querying.test.js index 1067a6ed..43159d17 100644 --- a/test/basic-querying.test.js +++ b/test/basic-querying.test.js @@ -654,12 +654,14 @@ describe('basic-querying', function () { }); }); - it('should ignore undefined values of data', function (done) { - User.update({name: 'John Lennon'}, {name: undefined}, function (err) { + it('should ignore undefined values of data', function(done) { + User.update({name: 'John Lennon'}, {name: undefined, + email: 'johnl@b3atl3s.co.uk'}, function(err) { should.not.exist(err); - User.find({where: {name: 'John Lennon'}}, function (err, data) { + User.find({where: {name: 'John Lennon'}}, function(err, data) { should.not.exist(err); data.length.should.equal(1); + data[0].email.should.equal('johnl@b3atl3s.co.uk'); done(); }); });