import { strict as assert } from 'node:assert'; import testUtils, { GLOBAL } from '../test-utils'; import BGREWRITEAOF from './BGREWRITEAOF'; import { parseArgs } from './generic-transformers'; describe('BGREWRITEAOF', () => { it('transformArguments', () => { assert.deepEqual( parseArgs(BGREWRITEAOF), ['BGREWRITEAOF'] ); }); testUtils.testWithClient('client.bgRewriteAof', async client => { assert.equal( typeof await client.bgRewriteAof(), 'string' ); }, GLOBAL.SERVERS.OPEN); });