cloudcmd/client/dom/io/send-request.spec.mjs
2026-02-03 13:35:24 +02:00

11 lines
309 B
JavaScript

import {test} from 'supertape';
import {_replaceHash} from './send-request.mjs';
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);
t.end();
});