fix(core): update
This commit is contained in:
16
test/test.ts
Normal file
16
test/test.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartwhois from '../ts/index.js';
|
||||
|
||||
let testSmartWhois: smartwhois.SmartWhois;
|
||||
|
||||
tap.test('should create a valid instance of SmartWhois', async () => {
|
||||
testSmartWhois = new smartwhois.SmartWhois();
|
||||
expect(testSmartWhois).toBeInstanceOf(smartwhois.SmartWhois);
|
||||
})
|
||||
|
||||
tap.test('should get whois info for domain', async () => {
|
||||
const whoisInfo = await testSmartWhois.getWhoisForDomain('task.vc');
|
||||
console.log(whoisInfo);
|
||||
});
|
||||
|
||||
tap.start();
|
Reference in New Issue
Block a user