-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [IOCOM-793] Rename the sagas in the
features/messages/saga
fo…
…lder (#5403) ## Short description This PR renames all the sagas in the `features/messages/saga` folder. ## List of changes proposed in this pull request - renamed the sagas using the `handle` prefix - created `watchMessagesSaga` to listen to all messages actions and updated startup saga - updated tests ## How to test Tests should be solved correctly --------- Co-authored-by: Andrea <[email protected]>
- Loading branch information
Showing
25 changed files
with
665 additions
and
805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
/** | ||
* Mocked version of the BackendClient. | ||
*/ | ||
|
||
const mockedGetSession = jest.fn(); | ||
|
||
export const BackendClient = () => ({ | ||
getSession: mockedGetSession | ||
}); | ||
export const BackendClient = { | ||
getMessage: jest.fn(), | ||
getMessages: jest.fn(), | ||
getSession: jest.fn(), | ||
getThirdPartyMessagePrecondition: jest.fn(), | ||
upsertMessageStatusAttributes: jest.fn() | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.