mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-14 08:04:17 +00:00
test: tighten codex app inventory cache assertion
This commit is contained in:
@@ -105,8 +105,12 @@ describe("Codex app inventory cache", () => {
|
||||
|
||||
const forced = cache.refreshNow({ key, request, nowMs: 1 });
|
||||
resolveFresh?.({ data: [app("fresh-app")], nextCursor: null });
|
||||
await expect(forced).resolves.toMatchObject({
|
||||
apps: [expect.objectContaining({ id: "fresh-app" })],
|
||||
await expect(forced).resolves.toStrictEqual({
|
||||
key,
|
||||
apps: [app("fresh-app")],
|
||||
fetchedAtMs: 1,
|
||||
expiresAtMs: 1_001,
|
||||
revision: 2,
|
||||
});
|
||||
|
||||
resolveStale?.({ data: [app("stale-app")], nextCursor: null });
|
||||
|
||||
Reference in New Issue
Block a user