From 78e15f621854d6505b3681acc0f8d0ec1b864999 Mon Sep 17 00:00:00 2001 From: Alois Date: Sun, 30 Aug 2026 19:34:07 +0200 Subject: [PATCH] chore(identity): remove dumb test --- packages/identity/src/selection.test.ts | 28 ------------------------- 1 file changed, 28 deletions(-) delete mode 100644 packages/identity/src/selection.test.ts diff --git a/packages/identity/src/selection.test.ts b/packages/identity/src/selection.test.ts deleted file mode 100644 index 4235945..0000000 --- a/packages/identity/src/selection.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import type { User } from "./context"; -import { getChangedUserFields, selectUserFields } from "./selection"; - -const user = { - Avatar: undefined, - Display: "Alice", - IotaId: 1, - OmikronConnections: [], - OnlineStatus: "user_online", - PublicKey: "AA==", - SubEnd: 0, - SubLevel: 0, - UserId: 1, - Username: "alice", -} satisfies User; - -describe("presence selection", () => { - it("notifies OnlineStatus selections when presence changes", () => { - const next = { ...user, OnlineStatus: "user_dnd" as const }; - - expect(getChangedUserFields(user, next)).toEqual(["OnlineStatus"]); - expect(selectUserFields(next, ["OnlineStatus"])).toEqual({ - OnlineStatus: "user_dnd", - }); - }); -});