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/TTL.spec.ts
2023-05-03 14:38:51 -04:00

23 lines
467 B
TypeScript

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