add more test cases

This commit is contained in:
Ben Irvin 2023-06-05 11:53:55 +02:00
parent 7f3da5d08d
commit 54c4fa25b2

View File

@ -142,7 +142,10 @@ describe('Core API - Sanitize', () => {
notAnAttribute: '', // doesn't exist on schema
t0: { createdBy: { id: { $lt: '1' } } }, // join table name
t1: { createdBy: { id: { $lt: '1' } } }, // join table name
t0: { updatedBy: { id: { $lt: '1' } } }, // join table name
t1: { updatedBy: { id: { $lt: '1' } } }, // join table name
$fakeOp: false,
id: { $STARTSWITH: '123' }, // wrong casing for operator
};
const res = await rq.get('/api/documents', { qs: { filters } });