Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Oct 23, 2023
1 parent b3fc6fe commit 8e326ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand Down

0 comments on commit 8e326ca

Please sign in to comment.