diff --git a/.betterer.results b/.betterer.results index d07511ae306..565c4e7848c 100644 --- a/.betterer.results +++ b/.betterer.results @@ -6155,9 +6155,7 @@ exports[`better eslint`] = { [0, 0, 0, "Unexpected any. Specify a different type.", "0"] ], "public/test/jest-setup.ts:5381": [ - [0, 0, 0, "Unexpected any. Specify a different type.", "0"], - [0, 0, 0, "Unexpected any. Specify a different type.", "1"], - [0, 0, 0, "Unexpected any. Specify a different type.", "2"] + [0, 0, 0, "Unexpected any. Specify a different type.", "0"] ], "public/test/jest-shim.ts:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"], diff --git a/public/test/jest-setup.ts b/public/test/jest-setup.ts index 1477e86bd88..393269edcfa 100644 --- a/public/test/jest-setup.ts +++ b/public/test/jest-setup.ts @@ -65,26 +65,6 @@ jest.mock('../app/core/core', () => ({ jest.mock('../app/angular/partials', () => ({})); jest.mock('../app/features/plugins/plugin_loader', () => ({})); -const localStorageMock = (() => { - let store: any = {}; - return { - getItem: (key: string) => { - return store[key]; - }, - setItem: (key: string, value: any) => { - store[key] = value.toString(); - }, - clear: () => { - store = {}; - }, - removeItem: (key: string) => { - delete store[key]; - }, - }; -})(); - -global.localStorage = localStorageMock; - const throwUnhandledRejections = () => { process.on('unhandledRejection', (err) => { throw err;