You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix some more
This commit is contained in:
@@ -109,7 +109,13 @@ Some command arguments/replies have changed to align more closely to data types
|
|||||||
- `GEORADIUSBYMEMBERSTORE` -> `GEORADIUSBYMEMBER_STORE`
|
- `GEORADIUSBYMEMBERSTORE` -> `GEORADIUSBYMEMBER_STORE`
|
||||||
- `XACK`: `boolean` -> `number` [^boolean-to-number]
|
- `XACK`: `boolean` -> `number` [^boolean-to-number]
|
||||||
- `XADD`: the `INCR` option has been removed, use `XADD_INCR` instead
|
- `XADD`: the `INCR` option has been removed, use `XADD_INCR` instead
|
||||||
|
- `LASTSAVE`: `Date` -> `number` (unix timestamp)
|
||||||
|
- `HELLO`: `protover` moved from the options object to it's own argument, `auth` -> `AUTH`, `clientName` -> `SETNAME`
|
||||||
|
- `MODULE LIST`: `version` -> `ver` [^map-keys]
|
||||||
|
- `MEMORY STATS`: [^map-keys]
|
||||||
|
|
||||||
[^enum-to-constants]: TODO
|
[^enum-to-constants]: TODO
|
||||||
|
|
||||||
[^boolean-to-number]: TODO
|
[^boolean-to-number]: TODO
|
||||||
|
|
||||||
|
[^map-keys]: [TODO](https://github.com/redis/node-redis/discussions/2506)
|
@@ -45,7 +45,7 @@ describe('COPY', () => {
|
|||||||
testUtils.testAll('copy', async client => {
|
testUtils.testAll('copy', async client => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await client.copy('{tag}source', '{tag}destination'),
|
await client.copy('{tag}source', '{tag}destination'),
|
||||||
false
|
0
|
||||||
);
|
);
|
||||||
}, {
|
}, {
|
||||||
client: GLOBAL.SERVERS.OPEN,
|
client: GLOBAL.SERVERS.OPEN,
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
import { strict as assert } from 'assert';
|
import { strict as assert } from 'assert';
|
||||||
import testUtils, { GLOBAL } from '../test-utils';
|
import testUtils, { GLOBAL } from '../test-utils';
|
||||||
import { transformArguments } from './DBSIZE';
|
import DBSIZE from './DBSIZE';
|
||||||
|
|
||||||
describe('DBSIZE', () => {
|
describe('DBSIZE', () => {
|
||||||
it('transformArguments', () => {
|
it('transformArguments', () => {
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
transformArguments(),
|
DBSIZE.transformArguments(),
|
||||||
['DBSIZE']
|
['DBSIZE']
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testUtils.testWithClient('client.dbSize', async client => {
|
testUtils.testWithClient('client.dbSize', async client => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await client.dbSize(),
|
await client.dbSize(),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
}, GLOBAL.SERVERS.OPEN);
|
}, GLOBAL.SERVERS.OPEN);
|
||||||
});
|
});
|
||||||
|
@@ -22,7 +22,7 @@ describe('EXPIRE', () => {
|
|||||||
testUtils.testAll('expire', async client => {
|
testUtils.testAll('expire', async client => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await client.expire('key', 0),
|
await client.expire('key', 0),
|
||||||
false
|
0
|
||||||
);
|
);
|
||||||
}, {
|
}, {
|
||||||
client: GLOBAL.SERVERS.OPEN,
|
client: GLOBAL.SERVERS.OPEN,
|
||||||
|
@@ -30,7 +30,7 @@ describe('EXPIREAT', () => {
|
|||||||
testUtils.testAll('expireAt', async client => {
|
testUtils.testAll('expireAt', async client => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await client.expireAt('key', 1),
|
await client.expireAt('key', 1),
|
||||||
false
|
0
|
||||||
);
|
);
|
||||||
}, {
|
}, {
|
||||||
client: GLOBAL.SERVERS.OPEN,
|
client: GLOBAL.SERVERS.OPEN,
|
||||||
|
Reference in New Issue
Block a user