Open History to see the last commit
1import { describe, expect, it } from "vitest";
2import { buildLegacyClientSettingsMigrationPatch } from "./useSettings";
3
4describe("buildLegacyClientSettingsMigrationPatch", () => {
5 it("migrates archive confirmation from legacy local settings", () => {
6 expect(
7 buildLegacyClientSettingsMigrationPatch({
8 confirmThreadArchive: true,
9 confirmThreadDelete: false,
10 }),
11 ).toEqual({
12 confirmThreadArchive: true,
13 confirmThreadDelete: false,
14 });
15 });
16});