Skip to content

Commit 4084f26

Browse files
authored
Merge pull request #1272 from RedisInsight/be/bugfix/RI-3663_ts_length
RI-3663-fix ts length
2 parents 2453a01 + 0ae6f90 commit 4084f26

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

redisinsight/api/src/modules/browser/services/keys-business/key-info-manager/strategies/ts-type-info/ts-type-info.strategy.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('TSTypeInfoStrategy', () => {
7878
],
7979
]);
8080
when(browserTool.execCommand)
81-
.calledWith(mockClientOptions, BrowserToolTSCommands.TSInfo, [key])
81+
.calledWith(mockClientOptions, BrowserToolTSCommands.TSInfo, [key], 'utf8')
8282
.mockResolvedValue(mockTSInfoReply);
8383
});
8484
it('should return appropriate value', async () => {
@@ -143,7 +143,7 @@ describe('TSTypeInfoStrategy', () => {
143143
message: "ERR unknown command 'ts.info'",
144144
};
145145
when(browserTool.execCommand)
146-
.calledWith(mockClientOptions, BrowserToolTSCommands.TSInfo, [key])
146+
.calledWith(mockClientOptions, BrowserToolTSCommands.TSInfo, [key], 'utf8')
147147
.mockResolvedValue(replyError);
148148

149149
const result = await strategy.getInfo(

redisinsight/api/src/modules/browser/services/keys-business/key-info-manager/strategies/ts-type-info/ts-type-info.strategy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export class TSTypeInfoStrategy implements IKeyInfoStrategy {
6060
clientOptions,
6161
BrowserToolTSCommands.TSInfo,
6262
[key],
63+
'utf8',
6364
);
6465
const { totalsamples } = convertStringsArrayToObject(info);
6566
return totalsamples;

0 commit comments

Comments
 (0)