Skip to content

Commit 6399f3c

Browse files
committed
test: fix tests
1 parent 53f27aa commit 6399f3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/schema/SubdocumentPath.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ SubdocumentPath.defaultOptions = {};
340340

341341
SubdocumentPath.set = SchemaType.set;
342342

343+
/*!
344+
* ignore
345+
*/
346+
347+
SubdocumentPath.prototype.toJSON = function toJSON() {
348+
return { path: this.path, options: this.options };
349+
};
350+
343351
/*!
344352
* ignore
345353
*/

0 commit comments

Comments
 (0)