1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix mocking of user-store

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton 2020-06-24 10:57:54 -04:00
parent a917bb409c
commit dc8123416e
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,13 @@
jest.mock("electron")
jest.mock("../../../src/common/user-store")
jest.mock("../../../src/common/user-store", () => ({
UserStore: {
getInstance: () => ({
getPreferences: () => ({
downloadMirror: "default",
})
})
}
}))
import { Kubectl } from "../../../src/main/kubectl"

View File

@ -5,7 +5,6 @@ import * as request from "request"
import { promiseExec} from "./promise-exec"
import logger from "./logger"
import { ensureDir, pathExists } from "fs-extra"
import * as md5File from "md5-file"
import { globalRequestOpts } from "../common/request"
import * as lockFile from "proper-lockfile"
import { helmCli } from "./helm-cli"