smarturl/test/test.searchaprams.both.ts

18 lines
503 B
TypeScript
Raw Normal View History

2023-04-17 12:41:23 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as smarturl from '../ts/index.js';
let testSmarturl: smarturl.Smarturl;
tap.test('first test', async () => {
testSmarturl = new smarturl.Smarturl();
expect(testSmarturl).toBeInstanceOf(smarturl.Smarturl);
});
tap.test('should create searchParams only', async () => {
const smarturlInstance = new smarturl.Smarturl();
smarturlInstance.searchParams['hello'] = 'hi_there';
console.log(smarturlInstance.toString());
})
tap.start();