Skip to content

Commit 48b1ec3

Browse files
committed
Remove useless valid-fail $$matchAsRoot test
1 parent b43fbc7 commit 48b1ec3

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

source/unified-test-format/tests/valid-fail/operator-matchAsRoot.json

Lines changed: 1 addition & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/unified-test-format/tests/valid-fail/operator-matchAsRoot.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ initialData:
1919
databaseName: *database0Name
2020
documents:
2121
- { _id: 1, x: { y: 2, z: 3 } }
22-
- { _id: 2, x: '{ "x": 1, "y": 2.0 }' }
2322

2423
tests:
2524
-
26-
description: matchAsRoot with nested document
25+
description: matchAsRoot with nested document does not match
2726
operations:
2827
- name: find
2928
object: *collection0
@@ -32,13 +31,3 @@ tests:
3231
limit: 1
3332
expectResult:
3433
- { _id: 1, x: { $$matchAsRoot: { y: 3 } } }
35-
-
36-
description: matchAsRoot with matchAsDocument
37-
operations:
38-
- name: find
39-
object: *collection0
40-
arguments:
41-
filter: { _id : 1 }
42-
limit: 1
43-
expectResult:
44-
- { _id: 2, x: { $$matchAsDocument: { $$matchAsRoot: { x: 1 } } } }

0 commit comments

Comments
 (0)