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/EXPIREAT.spec.ts
2021-06-11 13:25:01 -04:00

20 lines
529 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './EXPIRE';
describe('EXPIREAT', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 1),
['EXPIRE', 'key', '1']
);
});
itWithClient(TestRedisServers.OPEN, 'client.expireAt', async client => {
assert.equal(
await client.expireAt('key', 1),
false
);
});
});