You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
19 lines
551 B
TypeScript
19 lines
551 B
TypeScript
import { strict as assert } from 'assert';
|
|
import { TestRedisServers, itWithClient } from '../test-utils';
|
|
import { transformArguments } from './TIME';
|
|
|
|
describe('TIME', () => {
|
|
describe('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');
|
|
});
|
|
});
|