From 8e025122a7a91ab13cbbcdbb331d3e796b376c3f Mon Sep 17 00:00:00 2001 From: Dennis Oelkers Date: Tue, 8 Nov 2022 13:44:42 +0100 Subject: [PATCH] Fixing up tests. --- graylog2-web-interface/src/stores/users/UsersStore.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graylog2-web-interface/src/stores/users/UsersStore.test.ts b/graylog2-web-interface/src/stores/users/UsersStore.test.ts index 99bef0d819127..59c0f1a0c34fd 100644 --- a/graylog2-web-interface/src/stores/users/UsersStore.test.ts +++ b/graylog2-web-interface/src/stores/users/UsersStore.test.ts @@ -45,7 +45,7 @@ describe('UsersStore', () => { describe('loadUsers', () => { it('should load json users and return them as value classes', async () => { const jsonList = userOverviewList.map((u) => u.toJSON()).toArray(); - asMock(fetch).mockReturnValueOnce(Promise.resolve({ users: jsonList })); + asMock(fetch).mockReturnValueOnce(Promise.resolve({ entities: jsonList })); const result = await UsersActions.loadUsers(); @@ -61,7 +61,7 @@ describe('UsersStore', () => { context: { admin_user: admin.toJSON(), }, - users: jsonList, + entities: jsonList, ...paginationJSON, })); @@ -77,7 +77,7 @@ describe('UsersStore', () => { context: { admin_user: null, }, - users: jsonList, + entities: jsonList, ...paginationJSON, }));