fix(core): update

This commit is contained in:
2022-07-27 00:40:18 +02:00
parent b84c8053ff
commit 4b6dc9f5c3
11 changed files with 11652 additions and 8972 deletions

View File

@ -1,11 +1,11 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smarturl from '../ts/index';
import * as smarturl from '../ts/index.js';
let testSmarturl: smarturl.Smarturl;
tap.test('first test', async () => {
testSmarturl = new smarturl.Smarturl();
expect(testSmarturl).to.be.instanceOf(smarturl.Smarturl);
expect(testSmarturl).toBeInstanceOf(smarturl.Smarturl);
});
tap.test('should parse an URL', async () => {
@ -15,8 +15,8 @@ tap.test('should parse an URL', async () => {
// console.log(altParsed);
const parsedUrl = smarturl.Smarturl.createFromUrl(testUrl, {
searchParams: {
more: 'overwritten'
}
more: 'overwritten',
},
});
console.log(parsedUrl);
console.log(parsedUrl.toString());