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/EXPIRE.spec.ts

20 lines
520 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './EXPIRE';
describe('EXPIRE', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 1),
['EXPIRE', 'key', '1']
);
});
testUtils.testWithClient('client.expire', async client => {
assert.equal(
await client.expire('key', 0),
false
);
}, GLOBAL.SERVERS.OPEN);
});