Fix the test case so that at least one property is to be changed
This commit is contained in:
parent
04348a1168
commit
f91399a307
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue