mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix specs
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
069563ec64
commit
8e786742d6
@ -1,20 +1,20 @@
|
|||||||
import packageInfo from "../../package.json"
|
import packageInfo from "../../package.json"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { bundledKubectl, Kubectl } from "../../src/main/kubectl";
|
import { Kubectl } from "../../src/main/kubectl";
|
||||||
import { isWindows } from "../common/vars";
|
import { isWindows } from "../common/vars";
|
||||||
|
|
||||||
jest.mock("../common/user-store");
|
jest.mock("../common/user-store");
|
||||||
|
|
||||||
describe("kubectlVersion", () => {
|
describe("kubectlVersion", () => {
|
||||||
it("returns bundled version if exactly same version used", async () => {
|
it("returns bundled version if exactly same version used", async () => {
|
||||||
const kubectl = new Kubectl(bundledKubectl.kubectlVersion)
|
const kubectl = new Kubectl(Kubectl.bundled().kubectlVersion)
|
||||||
expect(kubectl.kubectlVersion).toBe(bundledKubectl.kubectlVersion)
|
expect(kubectl.kubectlVersion).toBe(Kubectl.bundled().kubectlVersion)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("returns bundled version if same major.minor version is used", async () => {
|
it("returns bundled version if same major.minor version is used", async () => {
|
||||||
const { bundledKubectlVersion } = packageInfo.config;
|
const { bundledKubectlVersion } = packageInfo.config;
|
||||||
const kubectl = new Kubectl(bundledKubectlVersion);
|
const kubectl = new Kubectl(bundledKubectlVersion);
|
||||||
expect(kubectl.kubectlVersion).toBe(bundledKubectl.kubectlVersion)
|
expect(kubectl.kubectlVersion).toBe(Kubectl.bundled().kubectlVersion)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user