BREAKING CHANGE(core): update

This commit is contained in:
2021-05-02 16:32:24 +00:00
parent 105b1ca637
commit ce6622f858
2 changed files with 79 additions and 7 deletions

View File

@ -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();