We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
plugin()
1 parent 2262a77 commit 422f9daCopy full SHA for 422f9da
test/schema.test.js
@@ -924,6 +924,19 @@ describe('schema', function() {
924
925
assert.equal(called, true);
926
});
927
+
928
+ it('options param (gh-12077)', function() {
929
+ const Tobi = new Schema();
930
+ let called = false;
931
932
+ Tobi.plugin(function(schema, opts) {
933
+ assert.equal(schema, Tobi);
934
+ assert.deepStrictEqual(opts, { answer: 42 });
935
+ called = true;
936
+ }, { answer: 42 });
937
938
+ assert.equal(called, true);
939
+ });
940
941
942
describe('options', function() {
0 commit comments