Add manual translate as default (#33)
* Added translate and switch auto buttons * Tests updated * Added hotkey & improved buttons visually
This commit is contained in:
9
mocks/localStorage.ts
Normal file
9
mocks/localStorage.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
Object.defineProperty(window, "localStorage", {
|
||||
value: {
|
||||
getItem: jest.fn(() => null),
|
||||
setItem: jest.fn(() => null)
|
||||
},
|
||||
writable: true
|
||||
});
|
||||
|
||||
export const localStorageSetMock = window.localStorage.setItem;
|
||||
3
mocks/next.ts
Normal file
3
mocks/next.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import Router from "next/router";
|
||||
|
||||
export const routerPushMock = jest.spyOn(Router, "push").mockImplementation(async () => true);
|
||||
Reference in New Issue
Block a user