Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolova-an committed Apr 5, 2024
1 parent 8b1ea98 commit 856ce02
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ describe('pages/Settings/Networks/model/networks-overview-model', () => {

await allSettled(activeNetworksModel.events.networksChanged, { scope, params: chains });

const enabledNodeListMap = scope.getState(networksOverviewModel.$enabledNodeListMap);
const activeConnectionsMap = scope.getState(networksOverviewModel.$activeConnectionsMap);

expect(enabledNodeListMap).toEqual(expected);
expect(activeConnectionsMap).toEqual(expected);
});

test('should correctly map disabled networks to their connection lists', async () => {
Expand All @@ -64,8 +64,8 @@ describe('pages/Settings/Networks/model/networks-overview-model', () => {

await allSettled(inactiveNetworksModel.events.networksChanged, { scope, params: chains });

const disabledNodeListMap = scope.getState(networksOverviewModel.$disabledNodeListMap);
const inactiveConnectionsMap = scope.getState(networksOverviewModel.$inactiveConnectionsMap);

expect(disabledNodeListMap).toEqual(expected);
expect(inactiveConnectionsMap).toEqual(expected);
});
});

0 comments on commit 856ce02

Please sign in to comment.