From 9cfda161947a505e1b60c7826052e758d84a3949 Mon Sep 17 00:00:00 2001 From: Simon Ho Date: Wed, 9 Dec 2015 12:41:59 -0800 Subject: [PATCH] Fix failing test for MongoDB connector --- test/manipulation.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/manipulation.test.js b/test/manipulation.test.js index ab3313e6..4ff4143f 100644 --- a/test/manipulation.test.js +++ b/test/manipulation.test.js @@ -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);