You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-09-02 22:41:17 +03:00
add some missing commands
This commit is contained in:
26
lib/commands/ECHO.spec.ts
Normal file
26
lib/commands/ECHO.spec.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster } from '../test-utils';
|
||||
import { transformArguments } from './ECHO';
|
||||
|
||||
describe('ECHO', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('message'),
|
||||
['ECHO', 'message']
|
||||
);
|
||||
});
|
||||
|
||||
itWithClient(TestRedisServers.OPEN, 'client.echo', async client => {
|
||||
assert.equal(
|
||||
await client.echo('message'),
|
||||
'message'
|
||||
);
|
||||
});
|
||||
|
||||
itWithCluster(TestRedisClusters.OPEN, 'cluster.echo', async cluster => {
|
||||
assert.equal(
|
||||
await cluster.echo('message'),
|
||||
'message'
|
||||
);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user