packages/client/lib/commands/CLIENT_TRACKINGINFO.spec.ts
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_TRACKINGINFO from './CLIENT_TRACKINGINFO';
import { parseArgs } from './generic-transformers';
describe('CLIENT TRACKINGINFO', () => {
testUtils.isVersionGreaterThanHook([6, 2]);
it('transformArguments', () => {
assert.deepEqual(
parseArgs(CLIENT_TRACKINGINFO),
['CLIENT', 'TRACKINGINFO']
);
});
testUtils.testWithClient('client.clientTrackingInfo', async client => {
assert.deepEqual(
await client.clientTrackingInfo(),
{
flags: ['off'],
redirect: -1,
prefixes: []
}
);
}, GLOBAL.SERVERS.OPEN);
});