We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ba1bf commit f3812bcCopy full SHA for f3812bc
src/mainService.spec.tsx
@@ -9,4 +9,24 @@ describe("MainService", (): void => {
9
it("MainService export exists", (): void => {
10
expect(TestSubject.MainService).toBeDefined();
11
});
12
+
13
+ it("register", (): void => {
14
+ const ipc: any = {
15
+ on: jest.fn(),
16
+ };
17
18
+ const testSubject: TestSubject.MainService = new TestSubject.MainService(ipc, "main-channel");
19
+ testSubject.register();
20
+ expect(ipc.on).toHaveBeenCalledTimes(1);
21
+ });
22
23
+ it("callback", (): void => {
24
25
26
27
28
29
30
31
32
0 commit comments