mirror of
https://github.com/strapi/strapi.git
synced 2025-10-26 23:51:10 +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.body.data).toBeInstanceOf(Object);
|
||||
expect(res.body.data).toEqual(testWorkflow);
|
||||
expect(typeof res.body.meta.workflowCount).toBe('number');
|
||||
} else {
|
||||
expect(res.status).toBe(404);
|
||||
expect(res.body.data).toBeUndefined();
|
||||
@ -486,8 +487,6 @@ describeOnCondition(edition === 'EE')('Review workflows', () => {
|
||||
`/admin/review-workflows/workflows/${testWorkflow.id}?populate=*`,
|
||||
{ body: { data: { contentTypes: [productUID] } } }
|
||||
);
|
||||
|
||||
console.log(workflow);
|
||||
});
|
||||
|
||||
test('Should update the accordingly on an entity', async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user