mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
'use strict';
|
|
|
|
const test = require('supertape');
|
|
const io = require('./io');
|
|
|
|
test('cloudcmd: client: io: replaceHash', (t) => {
|
|
const {_replaceHash} = io;
|
|
const url = '/hello/####world';
|
|
const result = _replaceHash(url);
|
|
const expected = '/hello/%23%23%23%23world';
|
|
|
|
t.equal(result, expected, 'should equal');
|
|
t.end();
|
|
});
|
|
|