Docs: swap to obviously fake phone numbers

This commit is contained in:
Peter Steinberger
2025-12-07 04:42:58 +00:00
parent fdc0b283d7
commit 67c67dd86d
6 changed files with 22 additions and 22 deletions

View File

@@ -3,7 +3,7 @@ import { assertProvider, normalizeE164, toWhatsappJid } from "./index.js";
describe("normalizeE164", () => {
it("strips whatsapp prefix and whitespace", () => {
expect(normalizeE164("whatsapp:+1 555 123 4567")).toBe("+15551234567");
expect(normalizeE164("whatsapp:+1 555 555 0123")).toBe("+15555550123");
});
it("adds plus when missing", () => {
@@ -13,7 +13,7 @@ describe("normalizeE164", () => {
describe("toWhatsappJid", () => {
it("converts E164 to jid", () => {
expect(toWhatsappJid("+1 555 123 4567")).toBe("15551234567@s.whatsapp.net");
expect(toWhatsappJid("+1 555 555 0123")).toBe("15555550123@s.whatsapp.net");
});
});