Function
createMockSchemaCache
(
overrides: Partial<SchemaCache> = {},
)
Source from the content-addressed store, hash-verified
| 695 | |
| 696 | describe("shouldUseCachedSchema", () => { |
| 697 | const createMockSchemaCache = ( |
| 698 | overrides: Partial<SchemaCache> = {}, |
| 699 | ): SchemaCache => ({ |
| 700 | data: [], |
| 701 | version: 1, |
| 702 | timestamp: Date.now(), |
| 703 | ...overrides, |
| 704 | }); |
| 705 | |
| 706 | it("should return false when no cache exists", () => { |
| 707 | const result = shouldUseCachedSchema(undefined); |
Tested by
no test coverage detected