Skip to content

Commit aa63580

Browse files
committedDec 13, 2021
clean code
1 parent 0865d22 commit aa63580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/client/lib/client/index.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import testUtils, { GLOBAL, waitTillBeenCalled } from '../test-utils';
33
import RedisClient, { ClientLegacyCommandArguments, RedisClientType } from '.';
44
import { RedisClientMultiCommandType } from './multi-command';
55
import { RedisCommandArguments, RedisCommandRawReply, RedisModules, RedisScripts } from '../commands';
6-
import { AbortError, ClientClosedError, ConnectionTimeoutError, DisconnectsClientError, SocketClosedUnexpectedlyError, WatchError } from '../errors';
6+
import { AbortError, AuthError, ClientClosedError, ConnectionTimeoutError, DisconnectsClientError, SocketClosedUnexpectedlyError, WatchError } from '../errors';
77
import { defineScript } from '../lua-script';
88
import { spy } from 'sinon';
99
import { once } from 'events';
@@ -99,7 +99,7 @@ describe('Client', () => {
9999

100100
await assert.rejects(
101101
client.connect(),
102-
{ message }
102+
new AuthError(message)
103103
);
104104

105105
assert.equal(client.isOpen, false);

0 commit comments

Comments
 (0)
Please sign in to comment.