test: count meta

This commit is contained in:
Marc-Roig 2023-07-04 17:26:33 +02:00
parent 83aefda65a
commit 62be7cabe6
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249

View File

@ -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 () => {