test: tighten slack target assertions

This commit is contained in:
Shakker
2026-05-11 08:20:21 +01:00
parent 4866f7960c
commit 93cac4c7dc

View File

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