forked from FoundKeyGang/FoundKey
Johann150
38786b6999
This allows to get rid of the special loader for ts files. There is no need for the test files to be written in TypeScript, plain JavaScript should be fine for this purpose.
14 lines
290 B
JavaScript
14 lines
290 B
JavaScript
import * as assert from 'assert';
|
|
import { query } from '../../built/prelude/url.js';
|
|
|
|
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');
|
|
});
|
|
});
|