Skip to content

Commit 59a27cc

Browse files
committed
small cleanups
1 parent 25fdd32 commit 59a27cc

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install Packages
3434
run: npm ci
3535
- name: Build
36-
run: npm run build -- ./packages/client ./packages/test-utils ./packages/bloom ./packages/graph ./packages/json ./packages/search ./packages/time-series ./packages/redis
36+
run: npm run build
3737
- name: Run Tests
3838
run: npm run test -ws --if-present -- --forbid-only --redis-version=${{ matrix.redis-version }}
3939
- name: Upload to Codecov

packages/search/lib/commands/INFO.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ describe('INFO', () => {
1515
await client.ft.create('index', {
1616
field: SCHEMA_FIELD_TYPE.TEXT
1717
});
18-
// just test that it doesn't throw an error
19-
await client.ft.info('index');
18+
const reply = await client.ft.info('index');
19+
assert.deepEqual(reply.indexName, 'index');
20+
assert.deepEqual(reply.indexOptions, []);
21+
assert.deepEqual(reply.numDocs, '0');
2022
}, GLOBAL.SERVERS.OPEN);
2123
});

packages/time-series/lib/commands/INFO.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ArrayReply, BlobStringReply, Command, DoubleReply, NumberReply, ReplyUnion, SimpleStringReply, TypeMapping } from "@redis/client/lib/RESP/types";
22
import { TimeSeriesDuplicatePolicies } from ".";
33
import { TimeSeriesAggregationType } from "./CREATERULE";
4-
import { transformDoubleReply } from '@redis/client/dist/lib/commands/generic-transformers';
4+
import { transformDoubleReply } from '@redis/client/lib/commands/generic-transformers';
55

66
export type InfoRawReplyTypes = SimpleStringReply |
77
NumberReply |
@@ -93,7 +93,7 @@ export default {
9393
case 'chunkType':
9494
case 'duplicatePolicy':
9595
case 'sourceKey':
96-
case 'ignoreMaxTimeDiff':
96+
case 'ignoreMaxTimeDiff':
9797
ret[key] = reply[i+1];
9898
break;
9999
case 'labels':

packages/time-series/lib/commands/INFO_DEBUG.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BlobStringReply, Command, NumberReply, SimpleStringReply, TypeMapping } from "@redis/client/dist/lib/RESP/types";
1+
import { BlobStringReply, Command, NumberReply, SimpleStringReply, TypeMapping } from "@redis/client/lib/RESP/types";
22
import INFO, { InfoRawReply, InfoRawReplyTypes, InfoReply } from "./INFO";
33
import { ReplyUnion } from '@redis/client/lib/RESP/types';
44

@@ -50,7 +50,7 @@ export default {
5050

5151
for (let i=0; i < reply.length; i += 2) {
5252
const key = (reply[i] as any).toString();
53-
53+
5454
switch (key) {
5555
case 'keySelfName': {
5656
ret[key] = reply[i+1];

0 commit comments

Comments
 (0)