You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
24 lines
583 B
TypeScript
24 lines
583 B
TypeScript
import { strict as assert } from 'assert';
|
|
import { describe } from 'mocha';
|
|
import { transformArguments } from './BGSAVE';
|
|
|
|
describe('BGSAVE', () => {
|
|
describe('transformArguments', () => {
|
|
it('simple', () => {
|
|
assert.deepEqual(
|
|
transformArguments(),
|
|
['BGSAVE']
|
|
);
|
|
});
|
|
|
|
it('with SCHEDULE', () => {
|
|
assert.deepEqual(
|
|
transformArguments({
|
|
SCHEDULE: true
|
|
}),
|
|
['BGSAVE', 'SCHEDULE']
|
|
);
|
|
});
|
|
});
|
|
});
|