Fix tests
This commit is contained in:
parent
f73b7d4824
commit
ca7a7bcef9
|
@ -2511,11 +2511,9 @@ describe.each([
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
it.each([logicalOperators])(
|
it("should allow nested ors with multiple conditions", async () => {
|
||||||
"should allow nested ors with multiple conditions (with %s as root)",
|
|
||||||
async rootOperator => {
|
|
||||||
await expectQuery({
|
await expectQuery({
|
||||||
[rootOperator]: {
|
$or: {
|
||||||
conditions: [
|
conditions: [
|
||||||
{
|
{
|
||||||
$or: {
|
$or: {
|
||||||
|
@ -2534,8 +2532,7 @@ describe.each([
|
||||||
{ name: "bar", productCat: [{ _id: productCatRows[1]._id }] },
|
{ name: "bar", productCat: [{ _id: productCatRows[1]._id }] },
|
||||||
// { name: "baz", productCat: undefined }, // TODO
|
// { name: "baz", productCat: undefined }, // TODO
|
||||||
])
|
])
|
||||||
}
|
})
|
||||||
)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue