diff --git a/test/document.test.js b/test/document.test.js index f2e2cd5227a..6a9c50c13c1 100644 --- a/test/document.test.js +++ b/test/document.test.js @@ -9932,7 +9932,6 @@ describe('document', function() { }); }); it('Makes sure pre remove hook is executed gh-9885', function() { - const tracker = new assert.CallTracker(); const SubSchema = new Schema({ myValue: { type: String @@ -9952,22 +9951,22 @@ describe('document', function() { type: [SubSchema], required: true } - }, {minimize: false, collection: 'test'}); + }, { minimize: false, collection: 'test' }); - const Model = db.model('TestModel',thisSchema); + const Model = db.model('TestModel', thisSchema); return co(function*() { yield Model.deleteMany({}); // remove all existing documents const newModel = { foo: 'bar', - mySubdoc: [{myValue: 'some value'}] + mySubdoc: [{ myValue: 'some value' }] }; const document = yield Model.create(newModel); document.mySubdoc[0].remove(); yield document.save().catch((error) => { console.error(error); }); - assert.equal(count,1); + assert.equal(count, 1); }); }); });