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, }); }