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/TIME.spec.ts
2021-07-13 19:35:07 -04:00

19 lines
545 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './TIME';
describe('TIME', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments(),
['TIME']
);
});
itWithClient(TestRedisServers.OPEN, 'client.time', async client => {
const reply = await client.time();
assert.ok(reply instanceof Date);
assert.ok(typeof reply.microseconds === 'number');
});
});