From 93cac4c7dcb4a0e5a22c9c6ff2054d74ea2c65e4 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 08:20:21 +0100 Subject: [PATCH] test: tighten slack target assertions --- extensions/slack/src/targets.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/slack/src/targets.test.ts b/extensions/slack/src/targets.test.ts index 8fc1ff39ef4..61e999cf4c1 100644 --- a/extensions/slack/src/targets.test.ts +++ b/extensions/slack/src/targets.test.ts @@ -13,9 +13,10 @@ describe("parseSlackTarget", () => { { input: "slack:U789", id: "U789", normalized: "user:u789" }, ] as const; for (const testCase of cases) { - expect(parseSlackTarget(testCase.input), testCase.input).toMatchObject({ + expect(parseSlackTarget(testCase.input), testCase.input).toEqual({ kind: "user", id: testCase.id, + raw: testCase.input, normalized: testCase.normalized, }); } @@ -27,9 +28,10 @@ describe("parseSlackTarget", () => { { input: "#C999", id: "C999", normalized: "channel:c999" }, ] as const; for (const testCase of cases) { - expect(parseSlackTarget(testCase.input), testCase.input).toMatchObject({ + expect(parseSlackTarget(testCase.input), testCase.input).toEqual({ kind: "channel", id: testCase.id, + raw: testCase.input, normalized: testCase.normalized, }); }