core tests
This commit is contained in:
@@ -409,6 +409,8 @@ describe('UseCaseOutputPort', () => {
|
||||
present: (data: { key: string; data: unknown }) => {
|
||||
if (cache.has(data.key)) {
|
||||
cacheHits.push(data.key);
|
||||
// Update cache with new data even if key exists
|
||||
cache.set(data.key, data.data);
|
||||
} else {
|
||||
cacheMisses.push(data.key);
|
||||
cache.set(data.key, data.data);
|
||||
|
||||
Reference in New Issue
Block a user