Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions test/mocks/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ export class RedisClientMock extends EventEmitter {
}
}

// noinspection JSUnusedGlobalSymbols
public async connect(): Promise<void> {
this.connected = true;
this.status = 'ready';
}

// noinspection JSUnusedGlobalSymbols
public end() {}
// noinspection JSUnusedGlobalSymbols
public quit() {}
public async quit(): Promise<void> {}

// noinspection JSMethodCanBeStatic
public async set(...args: any[]): Promise<boolean> {
Expand Down Expand Up @@ -257,7 +263,7 @@ export class RedisClientMock extends EventEmitter {
}

// noinspection JSUnusedGlobalSymbols,JSMethodCanBeStatic
public psubscribe(...args: any[]): number {
public async psubscribe(...args: any[]): Promise<number> {
this.cbExecute(args.pop(), null, 1);
return 1;
}
Expand All @@ -269,7 +275,7 @@ export class RedisClientMock extends EventEmitter {
}

// noinspection JSUnusedGlobalSymbols,JSMethodCanBeStatic
public del(...args: any[]): number {
public async del(...args: any[]): Promise<number> {
const self = RedisClientMock;
let count = 0;
for (let key of args) {
Expand Down Expand Up @@ -309,7 +315,7 @@ export class RedisClientMock extends EventEmitter {
}

// noinspection JSUnusedGlobalSymbols,JSMethodCanBeStatic
public config(): boolean {
public async config(): Promise<boolean> {
return true;
}

Expand Down
Loading