Skip to content

Commit

Permalink
docs: fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Aug 25, 2023
1 parent e12ae3f commit e36fc48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ compiled" when I use nodemon / a testing framework?
**A**. `mongoose.model('ModelName', schema)` requires 'ModelName' to be
unique, so you can access the model by using `mongoose.model('ModelName')`.
If you put `mongoose.model('ModelName', schema);` in a
[mocha `beforeEach()` hook](https://mochajs.org/#hooks), this code will
[mocha `beforeEach()` hook](https://masteringjs.io/tutorials/mocha/beforeeach), this code will
attempt to create a new model named 'ModelName' before **every** test,
and so you will get an error. Make sure you only create a new model with
a given name **once**. If you need to create multiple models with the
Expand Down

0 comments on commit e36fc48

Please sign in to comment.