Skip to content

Commit 0c9a58d

Browse files
committed
test(NODE-4251): add validator into create collection
1 parent a1bed65 commit 0c9a58d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/tools/spec-runner/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,9 @@ const kOperations = new Map([
655655
(operation, db, context /*, options */) => {
656656
const collectionName = operation.arguments.collection;
657657
const encryptedFields = operation.arguments.encryptedFields;
658+
const validator = operation.arguments.validator;
658659
const session = maybeSession(operation, context);
659-
return db.createCollection(collectionName, { session, encryptedFields });
660+
return db.createCollection(collectionName, { session, encryptedFields, validator });
660661
}
661662
],
662663
[

0 commit comments

Comments
 (0)