Skip to content

Commit

Permalink
test: try clearing models before and after
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 26, 2022
1 parent 1a8bf29 commit f140bf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/model.validate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const mongoose = start.mongoose;
const Schema = mongoose.Schema;

describe('model: validate: ', function() {
afterEach(() => mongoose.deleteModel(/.*/));
beforeEach(() => mongoose.deleteModel(/.*/));
after(() => mongoose.deleteModel(/.*/));

it('Model.validate() (gh-7587)', async function() {
const Model = mongoose.model('Test', new Schema({
Expand Down

0 comments on commit f140bf2

Please sign in to comment.