1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-17 19:41:06 +03:00

fix tests

This commit is contained in:
leibale
2021-07-12 18:32:34 -04:00
parent 31aa61bdda
commit ad545b8230
2 changed files with 38 additions and 24 deletions

View File

@@ -44,17 +44,17 @@ export function transformReply(rawReply: Array<any>): XInfoStreamReply {
break;
case 'first-entry':
parsedReply.firstEntry = {
parsedReply.firstEntry = rawReply[i + 1] ? {
id: rawReply[i + 1][0],
message: transformReplyTuples(rawReply[i + 1][1])
};
} : null;
break;
case 'last-entry':
parsedReply.lastEntry = {
parsedReply.lastEntry = rawReply[i + 1] ? {
id: rawReply[i + 1][0],
message: transformReplyTuples(rawReply[i + 1][1])
};
} : null;
break;
}
}