packages/client/lib/commands/CLIENT_SETNAME.spec.ts
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_SETNAME from './CLIENT_SETNAME';
import { parseArgs } from './generic-transformers';
describe('CLIENT SETNAME', () => {
it('transformArguments', () => {
assert.deepEqual(
parseArgs(CLIENT_SETNAME, 'name'),
['CLIENT', 'SETNAME', 'name']
);
});
testUtils.testWithClient('client.clientSetName', async client => {
assert.equal(
await client.clientSetName('name'),
'OK'
);
}, GLOBAL.SERVERS.OPEN);
});