Skip to content

Commit 6d5ca21

Browse files
committed
fix: fix tests
Signed-off-by: dhmlau <[email protected]>
1 parent 4ebdfbf commit 6d5ca21

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/mongodb.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,8 @@ describe('mongodb connector', function() {
13271327
err.name.should.equal('MongoServerError');
13281328
err.errmsg.should.equal(
13291329
'The dollar ($) prefixed ' +
1330-
"field '$rename' in '$rename' is not valid for storage.",
1330+
"field '$rename' in '$rename' is not allowed in the context of an update's replacement document." +
1331+
'Consider using an aggregation pipeline with $replaceWith.',
13311332
);
13321333
done();
13331334
},
@@ -1352,7 +1353,8 @@ describe('mongodb connector', function() {
13521353
err.name.should.equal('MongoServerError');
13531354
err.errmsg.should.equal(
13541355
'The dollar ($) prefixed ' +
1355-
"field '$rename' in '$rename' is not valid for storage.",
1356+
"field '$rename' in '$rename' is not not allowed in the context of an update's replacement document. " +
1357+
'Consider using an aggregation pipeline with $replaceWith.',
13561358
);
13571359
done();
13581360
},
@@ -1409,7 +1411,8 @@ describe('mongodb connector', function() {
14091411
err.name.should.equal('MongoServerError');
14101412
err.errmsg.should.equal(
14111413
'The dollar ($) prefixed ' +
1412-
"field '$rename' in '$rename' is not valid for storage.",
1414+
"field '$rename' in '$rename' is not allowed in the context of an update's replacement document. " +
1415+
'Consider using an aggregation pipeline with $replaceWith.',
14131416
);
14141417
done();
14151418
},

0 commit comments

Comments
 (0)