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/LASTSAVE.spec.ts

17 lines
479 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './LASTSAVE';
describe('LASTSAVE', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments(),
['LASTSAVE']
);
});
itWithClient(TestRedisServers.OPEN, 'client.lastSave', async client => {
assert.ok((await client.lastSave()) instanceof Date);
});
});