mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
remove duplicate test
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
parent
412f0ad766
commit
df59960018
@ -11,8 +11,8 @@ jest.mock("electron", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
import { UserStore } from "./user-store"
|
import { UserStore } from "./user-store"
|
||||||
import { SemVer } from "semver";
|
import { SemVer } from "semver"
|
||||||
import electron from "electron";
|
import electron from "electron"
|
||||||
|
|
||||||
describe("user store tests", () => {
|
describe("user store tests", () => {
|
||||||
describe("for an empty config", () => {
|
describe("for an empty config", () => {
|
||||||
@ -65,14 +65,6 @@ describe("user store tests", () => {
|
|||||||
expect(us.preferences.colorTheme).toBe(UserStore.defaultTheme);
|
expect(us.preferences.colorTheme).toBe(UserStore.defaultTheme);
|
||||||
})
|
})
|
||||||
|
|
||||||
it("correctly resets theme to default value", () => {
|
|
||||||
const us = UserStore.getInstance<UserStore>();
|
|
||||||
|
|
||||||
us.preferences.colorTheme = "some other theme";
|
|
||||||
us.resetTheme();
|
|
||||||
expect(us.preferences.colorTheme).toBe(UserStore.defaultTheme);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("correctly calculates if the last seen version is an old release", () => {
|
it("correctly calculates if the last seen version is an old release", () => {
|
||||||
const us = UserStore.getInstance<UserStore>();
|
const us = UserStore.getInstance<UserStore>();
|
||||||
|
|
||||||
@ -80,7 +72,7 @@ describe("user store tests", () => {
|
|||||||
|
|
||||||
us.lastSeenAppVersion = (new SemVer(electron.app.getVersion())).inc("major").format();
|
us.lastSeenAppVersion = (new SemVer(electron.app.getVersion())).inc("major").format();
|
||||||
expect(us.isNewVersion).toBe(false);
|
expect(us.isNewVersion).toBe(false);
|
||||||
});
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("migrations", () => {
|
describe("migrations", () => {
|
||||||
@ -106,5 +98,5 @@ describe("user store tests", () => {
|
|||||||
|
|
||||||
expect(us.lastSeenAppVersion).toBe('0.0.0')
|
expect(us.lastSeenAppVersion).toBe('0.0.0')
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
Loading…
Reference in New Issue
Block a user