Skip to content

Commit d35ebc5

Browse files
committed
feat(auth): account scopes and expired pat workflow
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 8ce0940 commit d35ebc5

3 files changed

Lines changed: 27 additions & 12 deletions

File tree

src/renderer/routes/Accounts.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ describe('renderer/routes/Accounts.tsx', () => {
192192
await userEvent.click(screen.getByTestId('account-logout'));
193193

194194
expect(logoutFromAccountMock).toHaveBeenCalledTimes(1);
195-
expect(navigateMock).toHaveBeenCalledTimes(1);
196-
expect(navigateMock).toHaveBeenCalledWith(-1);
197195
});
198196

199197
it('should show view-scopes button for all auth methods', async () => {

src/renderer/routes/LoginWithOAuthApp.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('renderer/routes/LoginWithOAuthApp.tsx', () => {
118118

119119
expect(loginWithOAuthAppMock).toHaveBeenCalledTimes(1);
120120
expect(navigateMock).toHaveBeenCalledTimes(1);
121-
expect(navigateMock).toHaveBeenCalledWith(-1);
121+
expect(navigateMock).toHaveBeenCalledWith('/');
122122
});
123123

124124
it('should login using a token - failure', async () => {

src/renderer/routes/__snapshots__/Settings.test.tsx.snap

Lines changed: 26 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)