mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 09:17:51 +00:00
test: tighten whatsapp mention target assertions
This commit is contained in:
parent
26e3036c2a
commit
d0732cd78f
1 changed files with 7 additions and 4 deletions
|
|
@ -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",
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue