diff --git a/src/modules/collection-stats/tests/collections-stats.service.spec.ts b/src/modules/collection-stats/tests/collections-stats.service.spec.ts index 4d8e95cf9..dc3dedcd2 100644 --- a/src/modules/collection-stats/tests/collections-stats.service.spec.ts +++ b/src/modules/collection-stats/tests/collections-stats.service.spec.ts @@ -69,7 +69,7 @@ describe('CollectionsStatsService', () => { const stub = jest.spyOn(redisCacheService, 'getOrSet').mockImplementation(() => Promise.resolve({ key: 'identifier', value: '4' })); const results = await service.getItemsCount('identifier'); - const expectedCacheKey = `${CacheInfo.CollectionAssetsCount.key}_identifier_undefined`; + const expectedCacheKey = `${CacheInfo.CollectionAssetsCount.key}_identifier`; expect(stub).toHaveBeenCalled(); expect(stub).toBeCalledWith(expectedCacheKey, expect.anything(), CacheInfo.CollectionAssetsCount.ttl); expect(results).toMatchObject({ key: 'identifier', value: '4' });