mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
fix test
This commit is contained in:
parent
995473d959
commit
fc2ee1dd16
@ -89,7 +89,7 @@ const pagination = {
|
||||
pageCount: 1,
|
||||
};
|
||||
|
||||
describe('Sanitization - Filter private params', () => {
|
||||
describe('Validation - private params', () => {
|
||||
const builder = createTestBuilder();
|
||||
|
||||
beforeAll(async () => {
|
||||
@ -109,7 +109,8 @@ describe('Sanitization - Filter private params', () => {
|
||||
)
|
||||
);
|
||||
});
|
||||
test('Filter by createdBy user email', async () => {
|
||||
|
||||
test('Error when filters has createdBy user email', async () => {
|
||||
const res = await rq({
|
||||
method: 'GET',
|
||||
url: '/collectors',
|
||||
@ -124,10 +125,6 @@ describe('Sanitization - Filter private params', () => {
|
||||
},
|
||||
});
|
||||
|
||||
// The filter should be completely ignored, so we should get all the collectors
|
||||
expect(res.body.meta.pagination).toMatchObject({
|
||||
...pagination,
|
||||
total: 3,
|
||||
});
|
||||
expect(res.statusCode).toBe(400);
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user