2020-03-27 13:40:03 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
|
|
|
import * as smarturl from '../ts/index';
|
|
|
|
|
2021-04-12 19:18:36 +00:00
|
|
|
let testSmarturl: smarturl.Smarturl;
|
|
|
|
|
2020-03-27 13:40:03 +00:00
|
|
|
tap.test('first test', async () => {
|
2021-04-12 19:18:36 +00:00
|
|
|
testSmarturl = new smarturl.Smarturl();
|
|
|
|
expect(testSmarturl).to.be.instanceOf(smarturl.Smarturl);
|
2020-03-27 13:40:03 +00:00
|
|
|
});
|
|
|
|
|
2021-04-12 20:09:19 +00:00
|
|
|
tap.test('should parse an URL', async () => {
|
|
|
|
const parsedUrl = testSmarturl.parseUrl('https://lossless.com');
|
|
|
|
console.log(parsedUrl);
|
|
|
|
});
|
|
|
|
|
2020-03-27 13:40:03 +00:00
|
|
|
tap.start();
|