























@@ -13,9 +13,10 @@ describe("parseSlackTarget", () => {
1313{ input: "slack:U789", id: "U789", normalized: "user:u789" },
1414] as const;
1515for (const testCase of cases) {
16-expect(parseSlackTarget(testCase.input), testCase.input).toMatchObject({
16+expect(parseSlackTarget(testCase.input), testCase.input).toEqual({
1717kind: "user",
1818id: testCase.id,
19+raw: testCase.input,
1920normalized: testCase.normalized,
2021});
2122}
@@ -27,9 +28,10 @@ describe("parseSlackTarget", () => {
2728{ input: "#C999", id: "C999", normalized: "channel:c999" },
2829] as const;
2930for (const testCase of cases) {
30-expect(parseSlackTarget(testCase.input), testCase.input).toMatchObject({
31+expect(parseSlackTarget(testCase.input), testCase.input).toEqual({
3132kind: "channel",
3233id: testCase.id,
34+raw: testCase.input,
3335normalized: testCase.normalized,
3436});
3537}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。