1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/client/lib/commands/WAIT.spec.ts
2023-05-03 14:42:31 -04:00

23 lines
474 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import WAIT from './WAIT';
describe('WAIT', () => {
it('transformArguments', () => {
assert.deepEqual(
WAIT.transformArguments(0, 1),
['WAIT', '0', '1']
);
});
testUtils.testAll('wait', async client => {
assert.equal(
await client.wait(0, 1),
0
);
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
});