mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat(snippets): redesign panel to match the host list
This commit is contained in:
1 parent
278fc7e32a
commit
75c3542ba0
12 files changed
+1520
-613
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { readSnippetSettings } from "../../src/frontend/settings";
|
||||
|
||||
describe("readSnippetSettings", () => {
|
||||
it("falls back to the manifest defaults", () => {
|
||||
expect(readSnippetSettings({})).toEqual({
|
||||
foldersCollapsed: true,
|
||||
showCommands: true,
|
||||
confirmExecution: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("reads saved values", () => {
|
||||
expect(
|
||||
readSnippetSettings({
|
||||
foldersCollapsed: false,
|
||||
showCommands: false,
|
||||
confirmExecution: true,
|
||||
}),
|
||||
).toEqual({
|
||||
foldersCollapsed: false,
|
||||
showCommands: false,
|
||||
confirmExecution: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user