1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

some more commands

This commit is contained in:
Leibale
2023-05-14 14:42:48 +03:00
parent 442a554fce
commit 37be30a8fe
32 changed files with 547 additions and 614 deletions

View File

@@ -1,19 +1,19 @@
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './PUBSUB_NUMPAT';
import PUBSUB_NUMPAT from './PUBSUB_NUMPAT';
describe('PUBSUB NUMPAT', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments(),
['PUBSUB', 'NUMPAT']
);
});
it('transformArguments', () => {
assert.deepEqual(
PUBSUB_NUMPAT.transformArguments(),
['PUBSUB', 'NUMPAT']
);
});
testUtils.testWithClient('client.pubSubNumPat', async client => {
assert.equal(
await client.pubSubNumPat(),
0
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testWithClient('client.pubSubNumPat', async client => {
assert.equal(
await client.pubSubNumPat(),
0
);
}, GLOBAL.SERVERS.OPEN);
});