chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -38,16 +38,10 @@ describe("inbound dedupe", () => {
MessageSid: "msg-1",
};
expect(
shouldSkipDuplicateInbound(
{ ...base, OriginatingTo: "whatsapp:+1000" },
{ now: 100 },
),
shouldSkipDuplicateInbound({ ...base, OriginatingTo: "whatsapp:+1000" }, { now: 100 }),
).toBe(false);
expect(
shouldSkipDuplicateInbound(
{ ...base, OriginatingTo: "whatsapp:+2000" },
{ now: 200 },
),
shouldSkipDuplicateInbound({ ...base, OriginatingTo: "whatsapp:+2000" }, { now: 200 }),
).toBe(false);
});
@@ -60,22 +54,13 @@ describe("inbound dedupe", () => {
MessageSid: "msg-1",
};
expect(
shouldSkipDuplicateInbound(
{ ...base, SessionKey: "agent:alpha:main" },
{ now: 100 },
),
shouldSkipDuplicateInbound({ ...base, SessionKey: "agent:alpha:main" }, { now: 100 }),
).toBe(false);
expect(
shouldSkipDuplicateInbound(
{ ...base, SessionKey: "agent:bravo:main" },
{ now: 200 },
),
shouldSkipDuplicateInbound({ ...base, SessionKey: "agent:bravo:main" }, { now: 200 }),
).toBe(false);
expect(
shouldSkipDuplicateInbound(
{ ...base, SessionKey: "agent:alpha:main" },
{ now: 300 },
),
shouldSkipDuplicateInbound({ ...base, SessionKey: "agent:alpha:main" }, { now: 300 }),
).toBe(true);
});
});