Skip to content

Commit d3f3a63

Browse files
committed
ADD query correctness test for #7356
1 parent 4232468 commit d3f3a63

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

test/unit/rx-storage-query-correctness.test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,27 @@ describeParallel('rx-storage-query-correctness.test.ts', () => {
10731073
expectedResultDocIds: [
10741074
'one'
10751075
]
1076+
},
1077+
{
1078+
info: '$or with $eq null',
1079+
query: {
1080+
selector: {
1081+
$or: [
1082+
{
1083+
null: null
1084+
},
1085+
{
1086+
null: 'not-null',
1087+
id: 'two',
1088+
}
1089+
]
1090+
},
1091+
sort: [{ id: 'asc' }]
1092+
},
1093+
expectedResultDocIds: [
1094+
'one',
1095+
'two'
1096+
]
10761097
}
10771098
]
10781099
});

0 commit comments

Comments
 (0)