mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
21 lines
460 B
TypeScript
21 lines
460 B
TypeScript
import mockFs from "mock-fs";
|
|
import { HotbarStore, hotbarStore } from "../hotbar-store";
|
|
|
|
describe("HotbarStore", () => {
|
|
beforeEach(() => {
|
|
HotbarStore.resetInstance();
|
|
mockFs({ tmp: { "lens-hotbar-store.json": "{}" } });
|
|
});
|
|
|
|
afterEach(() => {
|
|
mockFs.restore();
|
|
});
|
|
|
|
describe("load", () => {
|
|
it("loads one hotbar by default", () => {
|
|
hotbarStore.load();
|
|
expect(hotbarStore.hotbars.length).toEqual(1);
|
|
});
|
|
});
|
|
});
|