Skip to content

Commit

Permalink
fix: logout from (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy authored Apr 11, 2024
1 parent 1b18d67 commit 8ab322a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/Settings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('routes/Settings.tsx', () => {
);
});

fireEvent.click(screen.getByTitle('Logout octocat'));
fireEvent.click(screen.getByTitle('Logout from octocat'));

expect(logoutMock).toHaveBeenCalledTimes(1);

Expand Down
2 changes: 1 addition & 1 deletion src/routes/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const SettingsRoute: FC = () => {
<button
type="button"
className={footerButtonClass}
title={`Logout ${accounts.user.login}`}
title={`Logout from ${accounts.user.login}`}
role="button"
onClick={logoutUser}
>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/__snapshots__/Settings.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ab322a

Please sign in to comment.