| 1 |
import { strict as assert } from 'assert'; |
| 2 |
import testUtils, { GLOBAL } from '../../test-utils'; |
| 3 |
import { transformArguments } from './INFO'; |
| 4 |
|
| 5 |
describe('CMS INFO', () => { |
| 6 |
it('transformArguments', () => { |
| 7 |
assert.deepEqual( |
| 8 |
transformArguments('key'), |
| 9 |
['CMS.INFO', 'key'] |
| 10 |
); |
| 11 |
}); |
| 12 |
|
| 13 |
testUtils.testWithClient('client.cms.info', async client => { |
| 14 |
await client.cms.initByDim('key', 1000, 5); |
| 15 |
|
| 16 |
assert.deepEqual( |
| 17 |
await client.cms.info('key'), |
| 18 |
{ |
| 19 |
width: 1000, |
| 20 |
depth: 5, |
| 21 |
count: 0 |
| 22 |
} |
| 23 |
); |
| 24 |
}, GLOBAL.SERVERS.OPEN); |
| 25 |
}); |