mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 18:24:47 +00:00
test: tighten slack target assertions
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user