mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
27 lines
656 B
TypeScript
27 lines
656 B
TypeScript
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,
|
|
});
|
|
});
|
|
});
|