You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
22 lines
544 B
TypeScript
22 lines
544 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../../test-utils';
|
|
import DEL from './DEL';
|
|
|
|
describe('CF.DEL', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
DEL.transformArguments('key', 'item'),
|
|
['CF.DEL', 'key', 'item']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.cf.del', async client => {
|
|
const [, reply] = await Promise.all([
|
|
client.cf.reserve('key', 4),
|
|
client.cf.del('key', 'item')
|
|
]);
|
|
|
|
assert.equal(reply, false);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|