Add more tests

This commit is contained in:
Adria Navarro 2024-10-16 12:44:25 +02:00
parent 7266fb3c1b
commit 88d4ebc725
1 changed files with 19 additions and 2 deletions

View File

@ -2612,8 +2612,8 @@ describe.each([
}),
config.api.row.save(tableOrViewId, {
name: "test3",
related1: [],
related2: [],
related1: [relatedRows[1]._id],
related2: [relatedRows[2]._id!],
}),
])
})
@ -2634,6 +2634,8 @@ describe.each([
},
{
name: "test3",
related1: [{ _id: relatedRows[1]._id }],
related2: [{ _id: relatedRows[2]._id }],
},
])
})
@ -2668,6 +2670,21 @@ describe.each([
},
])
})
it("should be able to filter on both fields", async () => {
await expectSearch({
query: {
notEqual: {
["related1.name"]: "foo",
["related2.name"]: "baz",
},
},
}).toContainExactly([
{
name: "test2",
},
])
})
})
isInternal &&