Skip to content

Commit

Permalink
Fixing up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers committed Nov 8, 2022
1 parent 702d68b commit 8e02512
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graylog2-web-interface/src/stores/users/UsersStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -61,7 +61,7 @@ describe('UsersStore', () => {
context: {
admin_user: admin.toJSON(),
},
users: jsonList,
entities: jsonList,
...paginationJSON,
}));

Expand All @@ -77,7 +77,7 @@ describe('UsersStore', () => {
context: {
admin_user: null,
},
users: jsonList,
entities: jsonList,
...paginationJSON,
}));

Expand Down

0 comments on commit 8e02512

Please sign in to comment.