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 b43fbc7 commit 48b1ec3
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 48b1ec3

Please sign in to comment.