import { strict as assert } from 'assert'; import testUtils, { GLOBAL } from '../test-utils'; import { transformArguments } from './CLUSTER_MYSHARDID'; describe('CLUSTER MYSHARDID', () => { testUtils.isVersionGreaterThanHook([7, 2]); it('transformArguments', () => { assert.deepEqual( transformArguments(), ['CLUSTER', 'MYSHARDID'] ); }); testUtils.testWithCluster('clusterNode.clusterMyShardId', async cluster => { const client = await cluster.nodeClient(cluster.masters[0]); assert.equal( typeof await client.clusterMyShardId(), 'string' ); }, GLOBAL.CLUSTERS.OPEN); });