mirror of
https://github.com/strapi/strapi.git
synced 2025-10-27 16:10:08 +00:00
test: count meta
This commit is contained in:
parent
83aefda65a
commit
62be7cabe6
@ -177,6 +177,7 @@ describeOnCondition(edition === 'EE')('Review workflows', () => {
|
|||||||
expect(res.status).toBe(200);
|
expect(res.status).toBe(200);
|
||||||
expect(res.body.data).toBeInstanceOf(Object);
|
expect(res.body.data).toBeInstanceOf(Object);
|
||||||
expect(res.body.data).toEqual(testWorkflow);
|
expect(res.body.data).toEqual(testWorkflow);
|
||||||
|
expect(typeof res.body.meta.workflowCount).toBe('number');
|
||||||
} else {
|
} else {
|
||||||
expect(res.status).toBe(404);
|
expect(res.status).toBe(404);
|
||||||
expect(res.body.data).toBeUndefined();
|
expect(res.body.data).toBeUndefined();
|
||||||
@ -486,8 +487,6 @@ describeOnCondition(edition === 'EE')('Review workflows', () => {
|
|||||||
`/admin/review-workflows/workflows/${testWorkflow.id}?populate=*`,
|
`/admin/review-workflows/workflows/${testWorkflow.id}?populate=*`,
|
||||||
{ body: { data: { contentTypes: [productUID] } } }
|
{ body: { data: { contentTypes: [productUID] } } }
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log(workflow);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Should update the accordingly on an entity', async () => {
|
test('Should update the accordingly on an entity', async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user