Skip to content

Commit b33d8c2

Browse files
committed
style: fix lint
1 parent df93f5b commit b33d8c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/document.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4965,12 +4965,12 @@ describe('document', function() {
49654965
});
49664966

49674967
it('Disallows writing to __proto__', function(done) {
4968-
const schema = new mongoose.Schema({
4968+
var schema = new mongoose.Schema({
49694969
name: String
49704970
}, { strict: false });
49714971

4972-
const Model = db.model('prototest', schema);
4973-
const doc = new Model({ '__proto__.x': 'foo' });
4972+
var Model = db.model('prototest', schema);
4973+
var doc = new Model({ '__proto__.x': 'foo' });
49744974

49754975
assert.strictEqual(Model.x, void 0);
49764976
doc.set('__proto__.y', 'bar');

0 commit comments

Comments
 (0)