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 INCRBYFLOAT spec
This commit is contained in:
@@ -1,19 +1,22 @@
|
|||||||
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 './INCRBYFLOAT';
|
import INCRBYFLOAT from './INCRBYFLOAT';
|
||||||
|
|
||||||
describe('INCRBYFLOAT', () => {
|
describe('INCRBYFLOAT', () => {
|
||||||
it('transformArguments', () => {
|
it('transformArguments', () => {
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
transformArguments('key', 1.5),
|
INCRBYFLOAT.transformArguments('key', 1.5),
|
||||||
['INCRBYFLOAT', 'key', '1.5']
|
['INCRBYFLOAT', 'key', '1.5']
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testUtils.testWithClient('client.incrByFloat', async client => {
|
testUtils.testAll('incrByFloat', async client => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await client.incrByFloat('key', 1.5),
|
await client.incrByFloat('key', 1.5),
|
||||||
'1.5'
|
'1.5'
|
||||||
);
|
);
|
||||||
}, GLOBAL.SERVERS.OPEN);
|
}, {
|
||||||
|
client: GLOBAL.SERVERS.OPEN,
|
||||||
|
cluster: GLOBAL.CLUSTERS.OPEN
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user