Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

test bulk unverified sessions toast behaviour #9655

Merged
merged 4 commits into from
Dec 1, 2022

Conversation

kerryarchibald
Copy link
Contributor

@kerryarchibald kerryarchibald commented Nov 30, 2022

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

Copy link
Contributor

@weeman1337 weeman1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More tests 👍

The checks, that showToast has not been called should be added. Fine otherwise.

@@ -124,7 +127,7 @@ describe('DeviceListener', () => {
it('saves client information on start', async () => {
await createAndStart();

expect(mockClient.setAccountData).toHaveBeenCalledWith(
expect(mockClient!.setAccountData).toHaveBeenCalledWith(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just a personal opinion but I would define the variable as always set instead of putting the ! everywhere.

test/DeviceListener-test.ts Show resolved Hide resolved
@kerryarchibald kerryarchibald merged commit 1d4cbee into develop Dec 1, 2022
@kerryarchibald kerryarchibald deleted the psg-893/test-bulk-unverified-toast branch December 1, 2022 07:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants