mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
add test from previous alternative
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
52929d4886
commit
3304fac4b9
@ -36,6 +36,13 @@ describe("workspace store tests", () => {
|
|||||||
expect(ws.getById(WorkspaceStore.defaultId)).not.toBe(null);
|
expect(ws.getById(WorkspaceStore.defaultId)).not.toBe(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("default workspace should be enabled", () => {
|
||||||
|
const ws = WorkspaceStore.getInstance<WorkspaceStore>();
|
||||||
|
|
||||||
|
expect(ws.workspaces.size).toBe(1);
|
||||||
|
expect(ws.getById(WorkspaceStore.defaultId).isEnabled).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
it("cannot remove the default workspace", () => {
|
it("cannot remove the default workspace", () => {
|
||||||
const ws = WorkspaceStore.getInstance<WorkspaceStore>();
|
const ws = WorkspaceStore.getInstance<WorkspaceStore>();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user