test: sync updated specs

This commit is contained in:
Peter Steinberger
2025-11-25 12:12:29 +01:00
parent 800c7a1e1f
commit 38659f5d3e
10 changed files with 100 additions and 94 deletions

View File

@@ -4,9 +4,9 @@ import { deriveSessionKey } from "./sessions.js";
describe("sessions", () => {
it("returns normalized per-sender key", () => {
expect(
deriveSessionKey("per-sender", { From: "whatsapp:+1555" }),
).toBe("+1555");
expect(deriveSessionKey("per-sender", { From: "whatsapp:+1555" })).toBe(
"+1555",
);
});
it("falls back to unknown when sender missing", () => {
@@ -17,4 +17,3 @@ describe("sessions", () => {
expect(deriveSessionKey("global", { From: "+1" })).toBe("global");
});
});