mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 23:04:45 +00:00
test: tighten whatsapp mention target assertions
This commit is contained in:
@@ -234,11 +234,11 @@ describe("resolveMentionTargets with @lid mapping", () => {
|
||||
authDir,
|
||||
);
|
||||
expect(mentionTargets.normalizedMentions).toEqual([
|
||||
expect.objectContaining({
|
||||
{
|
||||
jid: null,
|
||||
lid: "777@lid",
|
||||
e164: "+1777",
|
||||
}),
|
||||
},
|
||||
]);
|
||||
|
||||
const selfTargets = resolveMentionTargets(
|
||||
@@ -248,8 +248,11 @@ describe("resolveMentionTargets with @lid mapping", () => {
|
||||
}),
|
||||
authDir,
|
||||
);
|
||||
expect(selfTargets.self.e164).toBe("+1777");
|
||||
expect(selfTargets.self.lid).toBe("777@lid");
|
||||
expect(selfTargets.self).toEqual({
|
||||
jid: null,
|
||||
lid: "777@lid",
|
||||
e164: "+1777",
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user