Skip to content

Commit

Permalink
Merge branch '10197-story' into 10197-story-add-user
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cruz committed Nov 29, 2023
2 parents a8a62e0 + 1b1e5b5 commit 41090d3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions web-client/src/presenter/actions/setUserAction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,4 @@ describe('setUserAction', () => {
user,
);
});

it('should not update state if there is no user provided in props', async () => {
const user = {
userId: 'petitioner',
};

const results = await runAction(setUserAction, {
modules: {
presenter,
},
props: {},
state: {
user,
},
});

expect(results.state.user).toEqual(user);
expect(applicationContext.setCurrentUser.mock.calls.length).toEqual(0);
});
});

0 comments on commit 41090d3

Please sign in to comment.