17 lines
498 B
TypeScript
17 lines
498 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { buildLegacyClientSettingsMigrationPatch } from "./useSettings";
|
|
|
|
describe("buildLegacyClientSettingsMigrationPatch", () => {
|
|
it("migrates archive confirmation from legacy local settings", () => {
|
|
expect(
|
|
buildLegacyClientSettingsMigrationPatch({
|
|
confirmThreadArchive: true,
|
|
confirmThreadDelete: false,
|
|
}),
|
|
).toEqual({
|
|
confirmThreadArchive: true,
|
|
confirmThreadDelete: false,
|
|
});
|
|
});
|
|
});
|