Update test

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2021-09-02 13:26:47 +03:00
1 parent 8eb12cb659
commit 542329a2d6
1 file changed
+4 -3
@@ -50,11 +50,12 @@ const goForward = jest.fn();
jest.mock("@electron/remote", () => { jest.mock("@electron/remote", () => {
return { return {
webContents: { webContents: {
getFocusedWebContents: () => { getAllWebContents: () => {
return { return [{
getType: () => "window",
goBack, goBack,
goForward goForward
}; }];
} }
} }
}; };