Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] No tests for Schema.prototype.plugin with options #12077

Closed
2 tasks done
hasezoey opened this issue Jul 8, 2022 · 0 comments
Closed
2 tasks done

[Tests] No tests for Schema.prototype.plugin with options #12077

hasezoey opened this issue Jul 8, 2022 · 0 comments
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone

Comments

@hasezoey
Copy link
Collaborator

hasezoey commented Jul 8, 2022

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 });
@IslandRhythms IslandRhythms added the developer-experience This issue improves error messages, debugging, or reporting label Jul 11, 2022
@vkarpov15 vkarpov15 added this to the 6.4.6 milestone Jul 17, 2022
@vkarpov15 vkarpov15 added docs This issue is due to a mistake or omission in the mongoosejs.com documentation and removed developer-experience This issue improves error messages, debugging, or reporting labels Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

No branches or pull requests

3 participants