Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Aug 30, 2018
1 parent df93f5b commit b33d8c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4965,12 +4965,12 @@ describe('document', function() {
});

it('Disallows writing to __proto__', function(done) {
const schema = new mongoose.Schema({
var schema = new mongoose.Schema({
name: String
}, { strict: false });

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

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

0 comments on commit b33d8c2

Please sign in to comment.