Skip to content

Commit

Permalink
test: correctly clean up model re: #9056
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 5, 2022
1 parent 1fb268e commit 17e2831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/connection.test.js
Expand Up @@ -271,6 +271,7 @@ describe('connections:', function() {
});

it('allows passing a schema', function() {
mongoose.deleteModel(/Test/);
const MyModel = mongoose.model('Test', new Schema({
name: String
}));
Expand Down

0 comments on commit 17e2831

Please sign in to comment.