Skip to content

Commit bd77663

Browse files
committed
refactor simplify
Signed-off-by: Adam Setch <[email protected]>
1 parent eb6e10d commit bd77663

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/renderer/routes/Accounts.test.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ describe('renderer/routes/Accounts.tsx', () => {
258258

259259
it('should logout', async () => {
260260
const logoutFromAccountMock = jest.fn();
261-
const updateTrayColorMock = jest.spyOn(comms, 'updateTrayColor');
262-
const updateTrayTitleMock = jest.spyOn(comms, 'updateTrayTitle');
263261

264262
await act(async () => {
265263
render(
@@ -280,10 +278,6 @@ describe('renderer/routes/Accounts.tsx', () => {
280278
await userEvent.click(screen.getByTestId('account-logout'));
281279

282280
expect(logoutFromAccountMock).toHaveBeenCalledTimes(1);
283-
expect(updateTrayColorMock).toHaveBeenCalledTimes(1);
284-
expect(updateTrayColorMock).toHaveBeenCalledWith();
285-
expect(updateTrayTitleMock).toHaveBeenCalledTimes(1);
286-
expect(updateTrayTitleMock).toHaveBeenCalledWith();
287281

288282
expect(mockNavigate).toHaveBeenNthCalledWith(1, -1);
289283
});

src/renderer/utils/notifications/remove.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ describe('renderer/utils/remove.ts', () => {
2626
);
2727

2828
expect(result[0].notifications.length).toBe(1);
29+
expect(result[0].notifications[0].unread).toBe(false);
2930
});
3031

3132
it('should skip notification removal if nothing to remove', () => {

0 commit comments

Comments
 (0)