1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/commands/SWAPDB.spec.ts
2021-07-13 19:35:07 -04:00

20 lines
512 B
TypeScript

import { strict as assert } from 'assert';
import { itWithClient, TestRedisServers } from '../test-utils';
import { transformArguments } from './SWAPDB';
describe('SWAPDB', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments(0, 1),
['SWAPDB', '0', '1']
);
});
itWithClient(TestRedisServers.OPEN, 'client.swapDb', async client => {
assert.equal(
await client.swapDb(0, 1),
'OK'
);
});
});