| 1 |
import { strict as assert } from 'assert'; |
| 2 |
import testUtils, { GLOBAL } from '../test-utils'; |
| 3 |
import { transformArguments } from './DEL'; |
| 4 |
|
| 5 |
describe('DEL', () => { |
| 6 |
it('transformArguments', () => { |
| 7 |
assert.deepEqual( |
| 8 |
transformArguments('key', '-', '+'), |
| 9 |
['TS.DEL', 'key', '-', '+'] |
| 10 |
); |
| 11 |
}); |
| 12 |
|
| 13 |
testUtils.testWithClient('client.ts.del', async client => { |
| 14 |
await client.ts.create('key'); |
| 15 |
|
| 16 |
assert.equal( |
| 17 |
await client.ts.del('key', '-', '+'), |
| 18 |
0 |
| 19 |
); |
| 20 |
}, GLOBAL.SERVERS.OPEN); |
| 21 |
}); |