1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add tiny test

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-03-17 17:06:43 +03:00
parent c50ca45b49
commit 7736589738

View File

@ -77,4 +77,11 @@ describe("DockStore", () => {
expect(dockStore.selectedTabId).toBeUndefined();
});
it("doesn't change selected tab if other tab closed", () => {
dockStore.tabs = initialTabs;
dockStore.closeTab("install");
expect(dockStore.selectedTabId).toBe("terminal");
});
});