You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-11 22:42:42 +03:00
19 lines
509 B
TypeScript
19 lines
509 B
TypeScript
import { strict as assert } from 'assert';
|
|
import { TestRedisServers, itWithClient, itWithCluster, TestRedisClusters } from '../test-utils';
|
|
|
|
describe('PING', () => {
|
|
itWithClient(TestRedisServers.OPEN, 'client.ping', async client => {
|
|
assert.equal(
|
|
await client.ping(),
|
|
'PONG'
|
|
);
|
|
});
|
|
|
|
itWithCluster(TestRedisClusters.OPEN, 'cluster.ping', async cluster => {
|
|
assert.equal(
|
|
await cluster.ping(),
|
|
'PONG'
|
|
);
|
|
});
|
|
});
|