fix(core): update
This commit is contained in:
10
test/test.ts
10
test/test.ts
@ -1,8 +1,16 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as detector from '../ts/index';
|
||||
|
||||
let testDetector: detector.Detector;
|
||||
|
||||
tap.test('first test', async () => {
|
||||
console.log(detector.standardExport);
|
||||
testDetector = new detector.Detector();
|
||||
expect(testDetector).to.be.instanceOf(detector.Detector);
|
||||
});
|
||||
|
||||
tap.test('should detect an open port', async () => {
|
||||
const result = await testDetector.isActive('https://lossless.com');
|
||||
expect(result).to.be.true;
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user