This commit is contained in:
Ben Irvin 2023-09-28 10:39:27 +02:00
parent 0f66b31d37
commit 8fb3ffef45

View File

@ -159,6 +159,7 @@ describe('Core API - Validate', () => {
['at root', { id: {} }],
['nested known keys', { id: { $eq: {} } }],
['complex nested known keys', { id: { $and: { $eq: {}, $contains: {} } } }],
['undefined', { id: undefined }], // not sure this is a possible path, but might as well test it
])('Empty objects are accepted but sanitized out: %s : %s', async (label, filters) => {
const res = await rq.get('/api/documents', { qs: { filters } });