fix(core): update

This commit is contained in:
2022-07-28 15:10:34 +02:00
parent 55894a30f2
commit 2d52a14ec1
3 changed files with 36 additions and 6 deletions

View File

@ -22,4 +22,18 @@ tap.test('should parse an URL', async () => {
console.log(parsedUrl.toString());
});
tap.test('should parse an URL', async () => {
const testUrl = 'https://lossless.com:3000/';
// 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();