Fix prelude/url (#7855)

This commit is contained in:
MeiMei
2021-10-01 02:25:57 +09:00
committed by GitHub
parent bd9df789d1
commit a73a787753
2 changed files with 14 additions and 1 deletions

13
test/prelude/url.ts Normal file
View File

@ -0,0 +1,13 @@
import * as assert from 'assert';
import { query } from '../../src/prelude/url';
describe('url', () => {
it('query', () => {
const s = query({
foo: 'ふぅ',
bar: 'b a r',
baz: undefined
});
assert.deepStrictEqual(s, 'foo=%E3%81%B5%E3%81%85&bar=b%20a%20r');
});
});