1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-11 22:42:42 +03:00
Files
node-redis/lib/commands/PING.spec.ts

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'
);
});
});