mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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
|
||||||
};
|
}];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user