18 lines
619 B
TypeScript
18 lines
619 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { selectDirtySettingsValues } from "../lib/settings-client";
|
|
|
|
describe("settings client updates", () => {
|
|
it("submits only edited keys so provider saves do not touch file-backed groups", () => {
|
|
expect(selectDirtySettingsValues({
|
|
EVOLINK_API_KEY: "new-secret",
|
|
EVOLINK_BASE_URL: "https://api.example",
|
|
ZHINIAN_AUTH_REQUIRED: "auto",
|
|
ALI_OSS_BUCKET: "legacy-bucket"
|
|
}, new Set(["EVOLINK_API_KEY", "EVOLINK_BASE_URL"]))).toEqual({
|
|
EVOLINK_API_KEY: "new-secret",
|
|
EVOLINK_BASE_URL: "https://api.example"
|
|
});
|
|
});
|
|
});
|