1
0
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:
Sebastian Malton 2020-08-12 09:12:18 -04:00
parent 412f0ad766
commit df59960018

View File

@ -11,8 +11,8 @@ jest.mock("electron", () => {
})
import { UserStore } from "./user-store"
import { SemVer } from "semver";
import electron from "electron";
import { SemVer } from "semver"
import electron from "electron"
describe("user store tests", () => {
describe("for an empty config", () => {
@ -65,14 +65,6 @@ describe("user store tests", () => {
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", () => {
const us = UserStore.getInstance<UserStore>();
@ -80,7 +72,7 @@ describe("user store tests", () => {
us.lastSeenAppVersion = (new SemVer(electron.app.getVersion())).inc("major").format();
expect(us.isNewVersion).toBe(false);
});
})
})
describe("migrations", () => {
@ -106,5 +98,5 @@ describe("user store tests", () => {
expect(us.lastSeenAppVersion).toBe('0.0.0')
})
});
});
})
})