Skip to content

Commit 14fb1e4

Browse files
committed
Updated tests
1 parent 4d6434b commit 14fb1e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DeskThingServer/test/main/stores/appStore.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { App, APP_REQUESTS } from '@deskthing/types'
55
import Logger from '@server/utils/logger'
66
import { AuthStoreClass } from '@shared/stores/authStore'
77
import { ReleaseStoreClass } from '@shared/stores/releaseStore'
8+
import { NotificationStoreClass } from '@shared/stores/notificationStore'
89

910
vi.mock('electron', () => ({
1011
app: {
@@ -59,6 +60,7 @@ describe('AppStore', () => {
5960
let mockAppProcessStore: AppProcessStoreClass
6061
let mockAuthStore: AuthStoreClass
6162
let mockReleaseStore: ReleaseStoreClass
63+
let mockNotificationStore: NotificationStoreClass
6264

6365
beforeEach(() => {
6466
mockAppProcessStore = {
@@ -77,7 +79,11 @@ describe('AppStore', () => {
7779
on: vi.fn()
7880
} as unknown as ReleaseStoreClass
7981

80-
appStore = new AppStore(mockAppProcessStore, mockAuthStore, mockReleaseStore)
82+
mockNotificationStore = {
83+
on: vi.fn()
84+
} as unknown as NotificationStoreClass
85+
86+
appStore = new AppStore(mockAppProcessStore, mockAuthStore, mockReleaseStore, mockNotificationStore)
8187
})
8288

8389
afterEach(() => {

0 commit comments

Comments
 (0)