Skip to content

Commit 2cedde8

Browse files
#RI-5609 - fix test
1 parent 6cea27d commit 2cedde8

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

redisinsight/api/src/modules/recommendation/providers/recommendation.provider.spec.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { RedisClientConnectionType } from 'src/modules/redis/client';
66

77
const mockRedisMemoryInfoResponse1: string = '# Memory\r\nnumber_of_cached_scripts:10\r\n';
88
const mockRedisMemoryInfoResponse2: string = '# Memory\r\nnumber_of_cached_scripts:11\r\n';
9-
const mockRedisMemoryInfoResponse3: string = '# Memory\r\nnumber_of_cached_scripts:0\r\n';
10-
const mockRedisMemoryInfoResponse4: string = '# Memory\r\nnumber_of_cached_scripts:1\r\n';
119

1210
const mockRedisKeyspaceInfoResponse1: string = '# Keyspace\r\ndb0:keys=2,expires=0,avg_ttl=0\r\n';
1311
const mockRedisKeyspaceInfoResponse2: string = `# Keyspace\r\ndb0:keys=2,expires=0,avg_ttl=0\r\n
@@ -35,9 +33,6 @@ const mockRedisAclListResponse2: string[] = [
3533
const mockFTListResponse1 = [];
3634
const mockFTListResponse2 = ['idx'];
3735

38-
const mockTfunctionListResponse1 = [];
39-
const mockTfunctionListResponse2 = ['library'];
40-
4136
const mockKeys = [
4237
{
4338
name: Buffer.from('name'), type: 'string', length: 10, memory: 10, ttl: -1,
@@ -663,18 +658,4 @@ describe('RecommendationProvider', () => {
663658
expect(RTSRecommendation).toEqual(null);
664659
});
665660
});
666-
667-
describe('determineFunctionsWithStreamsRecommendation', () => {
668-
it('should return null when there are libraries', async () => {
669-
const functionsWithStreamsRecommendation = await service
670-
.determineFunctionsWithStreamsRecommendation(mockKeys, mockTfunctionListResponse2);
671-
expect(functionsWithStreamsRecommendation).toEqual(null);
672-
});
673-
674-
it('should return null when there is no stream key', async () => {
675-
const functionsWithStreamsRecommendation = await service
676-
.determineFunctionsWithStreamsRecommendation([mockSmallStringKey], mockTfunctionListResponse1);
677-
expect(functionsWithStreamsRecommendation).toEqual(null);
678-
});
679-
});
680661
});

0 commit comments

Comments
 (0)