You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
29 lines
739 B
TypeScript
29 lines
739 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './UNLINK';
|
|
|
|
describe('UNLINK', () => {
|
|
describe('transformArguments', () => {
|
|
it('string', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key'),
|
|
['UNLINK', 'key']
|
|
);
|
|
});
|
|
|
|
it('array', () => {
|
|
assert.deepEqual(
|
|
transformArguments(['1', '2']),
|
|
['UNLINK', '1', '2']
|
|
);
|
|
});
|
|
});
|
|
|
|
testUtils.testWithClient('client.unlink', async client => {
|
|
assert.equal(
|
|
await client.unlink('key'),
|
|
0
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|