mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
12 lines
323 B
JavaScript
12 lines
323 B
JavaScript
import test from 'supertape';
|
|
import {_replaceHash} from './send-request.js';
|
|
|
|
test('cloudcmd: client: io: replaceHash', (t) => {
|
|
const url = '/hello/####world';
|
|
const result = _replaceHash(url);
|
|
const expected = '/hello/%23%23%23%23world';
|
|
|
|
t.equal(result, expected, 'should equal');
|
|
t.end();
|
|
});
|
|
|