test: sync updated specs
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user