1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: reduce test time-complexity

This commit is contained in:
Ivar Conradi Østhus 2022-01-06 21:26:53 +01:00
parent 73685c771a
commit b1a2f110c6
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

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