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:
parent
a917bb409c
commit
dc8123416e
@ -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"
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user