diff --git a/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.json b/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.json index 25841602ec..ec6309418c 100644 --- a/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.json +++ b/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.json @@ -33,17 +33,13 @@ "y": 2, "z": 3 } - }, - { - "_id": 2, - "x": "{ \"x\": 1, \"y\": 2.0 }" } ] } ], "tests": [ { - "description": "matchAsRoot with nested document", + "description": "matchAsRoot with nested document does not match", "operations": [ { "name": "find", @@ -66,33 +62,6 @@ ] } ] - }, - { - "description": "matchAsRoot with matchAsDocument", - "operations": [ - { - "name": "find", - "object": "collection0", - "arguments": { - "filter": { - "_id": 1 - }, - "limit": 1 - }, - "expectResult": [ - { - "_id": 2, - "x": { - "$$matchAsDocument": { - "$$matchAsRoot": { - "x": 1 - } - } - } - } - ] - } - ] } ] } diff --git a/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.yml b/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.yml index 0754294e87..77e3ce5790 100644 --- a/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.yml +++ b/source/unified-test-format/tests/valid-fail/operator-matchAsRoot.yml @@ -19,11 +19,10 @@ initialData: databaseName: *database0Name documents: - { _id: 1, x: { y: 2, z: 3 } } - - { _id: 2, x: '{ "x": 1, "y": 2.0 }' } tests: - - description: matchAsRoot with nested document + description: matchAsRoot with nested document does not match operations: - name: find object: *collection0 @@ -32,13 +31,3 @@ tests: limit: 1 expectResult: - { _id: 1, x: { $$matchAsRoot: { y: 3 } } } - - - description: matchAsRoot with matchAsDocument - operations: - - name: find - object: *collection0 - arguments: - filter: { _id : 1 } - limit: 1 - expectResult: - - { _id: 2, x: { $$matchAsDocument: { $$matchAsRoot: { x: 1 } } } }