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

fix INCR spec

This commit is contained in:
dovi
2023-05-03 15:10:02 -04:00
parent b34e524880
commit 8d4421a8c1

View File

@@ -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 './INCR'; import INCR from './INCR';
describe('INCR', () => { describe('INCR', () => {
it('transformArguments', () => { it('transformArguments', () => {
assert.deepEqual( assert.deepEqual(
transformArguments('key'), INCR.transformArguments('key'),
['INCR', 'key'] ['INCR', 'key']
); );
}); });
testUtils.testWithClient('client.incr', async client => { testUtils.testAll('incr', async client => {
assert.equal( assert.equal(
await client.incr('key'), await client.incr('key'),
1 1
); );
}, GLOBAL.SERVERS.OPEN); }, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
}); });