remove duplicate test

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton committed 2020-08-12 09:12:27 -04:00
1 parent 412f0ad766
commit df59960018
1 file changed
+5 -13
+5 -13
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')
})
});
});
})
})