mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
feat(ui): update ui style
This commit is contained in:
35 files changed
+1577
-591
No files matched your search
@@ -31,7 +31,7 @@ describe("kvMessageTracker", () => {
|
||||
expect(await tracker.get("missing", "channel-1")).toBeNull();
|
||||
});
|
||||
|
||||
it("uses the msg:{eventId}:{targetId} key with a 7-day TTL", async () => {
|
||||
it("uses the msg:{eventId}:{targetId} key with a 24h TTL", async () => {
|
||||
const kv = createMockKV();
|
||||
const keys = new Map<string, string>();
|
||||
const ttls = new Map<string, number>();
|
||||
@@ -46,7 +46,7 @@ describe("kvMessageTracker", () => {
|
||||
const tracker = kvMessageTracker(kv);
|
||||
await tracker.set("event-1", "target-1", "msg-7");
|
||||
expect(keys.has("msg:event-1:target-1")).toBe(true);
|
||||
expect(ttls.get("msg:event-1:target-1")).toBe(604800);
|
||||
expect(ttls.get("msg:event-1:target-1")).toBe(86400);
|
||||
});
|
||||
|
||||
it("deletes tracked entries", async () => {
|
||||
|
||||
Reference in new issue
Block a user