diff --git a/src/renderer/components/settings/SystemSettings.test.tsx b/src/renderer/components/settings/SystemSettings.test.tsx index e4d669b6d..0a9d7d7d6 100644 --- a/src/renderer/components/settings/SystemSettings.test.tsx +++ b/src/renderer/components/settings/SystemSettings.test.tsx @@ -149,7 +149,7 @@ describe('renderer/components/settings/SystemSettings.tsx', () => { expect(screen.getByTestId('settings-volume-group')).not.toBeVisible(); }); - it('should increase playSound volume', async () => { + it('should increase notification volume', async () => { render( { expect(updateSetting).toHaveBeenCalledWith('notificationVolume', 30); }); - it('should decrease playSound volume', async () => { + it('should decrease notification volume', async () => { render( { expect(updateSetting).toHaveBeenCalledWith('notificationVolume', 10); }); - it('should reset playSound volume', async () => { + it('should reset notification volume', async () => { render( { onClick={() => { const newVolume = Math.max( settings.notificationVolume - 10, - 0, + 10, ); updateSetting('notificationVolume', newVolume); }} diff --git a/src/renderer/utils/notifications/native.test.ts b/src/renderer/utils/notifications/native.test.ts index 6e33703aa..e1b1621be 100644 --- a/src/renderer/utils/notifications/native.test.ts +++ b/src/renderer/utils/notifications/native.test.ts @@ -133,14 +133,8 @@ describe('renderer/utils/notifications/native.ts', () => { native.raiseSoundNotification(); expect(window.Audio.prototype.play).toHaveBeenCalledTimes(1); }); - }); - - describe('triggerNativeNotifications', () => { - afterEach(() => { - jest.clearAllMocks(); - }); - it('should raise only sound notification with correct volume', () => { + it('should play notification sound with correct volume', () => { const settings: SettingsState = { ...defaultSettings, playSound: true,