Skip to content

Commit 1673d06

Browse files
committed
nit
1 parent 22823b1 commit 1673d06

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,10 @@ import { defineScript } from '../lua-script';
1414
import { MATH_FUNCTION } from '../commands/FUNCTION_LOAD.spec';
1515
import RedisBloomModules from '@redis/bloom';
1616
import { RedisTcpSocketOptions } from '../client/socket';
17+
import { SQUARE_SCRIPT } from '../client/index.spec';
1718

1819
const execAsync = promisify(exec);
1920

20-
const SQUARE_SCRIPT = defineScript({
21-
SCRIPT:
22-
`local number = redis.call('GET', KEYS[1])
23-
return number * number`,
24-
NUMBER_OF_KEYS: 1,
25-
FIRST_KEY_INDEX: 0,
26-
transformArguments(key: string) {
27-
return [key];
28-
},
29-
transformReply: undefined as unknown as () => NumberReply
30-
});
31-
3221
/* used to ensure test environment resets to normal state
3322
i.e.
3423
- all redis nodes are active and are part of the topology

0 commit comments

Comments
 (0)