Skip to content

Commit

Permalink
Remove useless valid-fail $$matchAsRoot test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Nov 1, 2024
1 parent 971c3da commit 86d571c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 } } } }

0 comments on commit 86d571c

Please sign in to comment.