mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:31:37 +00:00
test: remove redundant stale-prune empty-store case
This commit is contained in:
@@ -79,14 +79,6 @@ describe("pruneStaleEntries", () => {
|
|||||||
expect(store.noDate).toBeDefined();
|
expect(store.noDate).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("empty store is a no-op", () => {
|
|
||||||
const store: Record<string, SessionEntry> = {};
|
|
||||||
const pruned = pruneStaleEntries(store, 30 * DAY_MS);
|
|
||||||
|
|
||||||
expect(pruned).toBe(0);
|
|
||||||
expect(Object.keys(store)).toHaveLength(0);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("all entries stale results in empty store", () => {
|
it("all entries stale results in empty store", () => {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
const store = makeStore([
|
const store = makeStore([
|
||||||
|
|||||||
Reference in New Issue
Block a user