1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/TIME.spec.ts
2021-11-09 12:32:21 -05:00

19 lines
542 B
TypeScript

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