Make linter happy

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-05-31 15:16:57 +03:00
1 parent 64683a8a86
commit 2b19930f57
8 files changed
+21 -18

No files matched your search

@@ -11,7 +11,7 @@ import { Icon } from "../../icon";
import { observable } from "mobx";
import { ipcRendererOn } from "../../../../common/ipc";
import { watchHistoryState } from "../../../remote-helpers/history-updater";
import { cssNames, noop } from "../../../utils";
import { cssNames } from "../../../utils";
import topBarItemsInjectable from "./top-bar-items/top-bar-items.injectable";
import { withInjectables } from "@ogre-tools/injectable-react";
import type { TopBarRegistration } from "./top-bar-registration";
@@ -10,7 +10,8 @@ import "@testing-library/jest-dom/extend-expect";
import type { DiContainer } from "@ogre-tools/injectable";
import appUpdateWarningLevelInjectable from "../../../app-update-warning/app-update-warning-level.injectable";
import { computed } from "mobx";
import { DiRender, renderFor } from "../../test-utils/renderFor";
import type { DiRender } from "../../test-utils/renderFor";
import { renderFor } from "../../test-utils/renderFor";
import updateAppInjectable from "../update-app.injectable";
import { getDiForUnitTesting } from "../../../getDiForUnitTesting";
@@ -55,6 +56,7 @@ describe("<UpdateButton/>", () => {
it("should call update function when menu item clicked", () => {
const update = jest.fn();
di.override(appUpdateWarningLevelInjectable, () => computed(() => "light"));
di.override(updateAppInjectable, update);
@@ -4,7 +4,7 @@
*/
import { getInjectable } from "@ogre-tools/injectable";
import { AutoUpdateQuitAndInstalledChannel } from "../../../common/ipc";
import { AutoUpdateQuitAndInstalledChannel } from "../../../common/ipc/update-available";
import broadcastMessageInjectable from "../../../common/ipc/broadcast-message.injectable";
const updateAppInjectable = getInjectable({
@@ -17,4 +17,4 @@ const updateAppInjectable = getInjectable({
},
});
export default updateAppInjectable;
export default updateAppInjectable;