Merge pull request #789 from strongloop/fix-failing-tests-for-mongodb

Fix failing test for MongoDB connector
This commit is contained in:
Simon Ho 2015-12-10 15:20:33 -08:00
commit 4ce02cbcc1
1 changed files with 4 additions and 1 deletions

View File

@ -492,7 +492,10 @@ describe('manipulation', function () {
});
it('should ignore unknown attributes when strict: true', function(done) {
person.updateAttributes({foo:'bar'},
// Using {foo: 'bar'} only causes dependent test failures due to the
// stripping of object properties when in strict mode (ie. {foo: 'bar'}
// changes to '{}' and breaks other tests
person.updateAttributes({name: 'John', foo:'bar'},
function(err, p) {
if (err) return done(err);
should.not.exist(p.foo);