Closed
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the issue has not already been raised
Issue
From what i can tell, there are currently no tests testing that Schema.prototype.plugin
can have options:
const sch = new mongoose.Schema();
sch.plugin((schema, opts) => void, { someoption: 1 });