BREAKING CHANGE(core): update
This commit is contained in:
11
test/test.ts
11
test/test.ts
@ -9,8 +9,17 @@ tap.test('first test', async () => {
|
||||
});
|
||||
|
||||
tap.test('should parse an URL', async () => {
|
||||
const parsedUrl = testSmarturl.parseUrl('https://lossless.com');
|
||||
const testUrl = 'https://lossless.com:3000/?some=cool&more=yes';
|
||||
// const urlMod = await import('url');
|
||||
// const altParsed = urlMod.parse(testUrl);
|
||||
// console.log(altParsed);
|
||||
const parsedUrl = smarturl.Smarturl.createFromUrl(testUrl, {
|
||||
searchParams: {
|
||||
more: 'overwritten'
|
||||
}
|
||||
});
|
||||
console.log(parsedUrl);
|
||||
console.log(parsedUrl.toString());
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user