Fix the test case so that at least one property is to be changed

This commit is contained in:
Raymond Feng 2015-03-16 09:26:03 -07:00
parent 04348a1168
commit f91399a307
1 changed files with 5 additions and 3 deletions

View File

@ -655,11 +655,13 @@ describe('basic-querying', function () {
}); });
it('should ignore undefined values of data', function(done) { it('should ignore undefined values of data', function(done) {
User.update({name: 'John Lennon'}, {name: undefined}, function (err) { User.update({name: 'John Lennon'}, {name: undefined,
email: 'johnl@b3atl3s.co.uk'}, function(err) {
should.not.exist(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); should.not.exist(err);
data.length.should.equal(1); data.length.should.equal(1);
data[0].email.should.equal('johnl@b3atl3s.co.uk');
done(); done();
}); });
}); });