test: tighten codex app inventory cache assertion

This commit is contained in:
Shakker 2026-05-10 18:55:34 +01:00
parent 64370ba2ef
commit bc35e7501d
No known key found for this signature in database

View file

@ -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 });