Skip to content

Commit

Permalink
chore: reduce test time-complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed Jan 6, 2022
1 parent 73685c7 commit b1a2f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/e2e/api/admin/user-admin.e2e.test.ts
Expand Up @@ -54,7 +54,7 @@ test('returns empty list of users', async () => {
});

test('creates and returns all users', async () => {
const createUserRequests = [...Array(20).keys()].map((i) =>
const createUserRequests = [...Array(10).keys()].map((i) =>
app.request
.post('/api/admin/user-admin')
.send({
Expand All @@ -72,7 +72,7 @@ test('creates and returns all users', async () => {
.expect('Content-Type', /json/)
.expect(200)
.expect((res) => {
expect(res.body.users.length).toBe(20);
expect(res.body.users.length).toBe(10);
expect(res.body.users[2].rootRole).toBe(editorRole.id);
});
});
Expand Down

1 comment on commit b1a2f11

@vercel
Copy link

@vercel vercel bot commented on b1a2f11 Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.