fix(core): update
This commit is contained in:
@ -8,7 +8,12 @@ tap.test('first test', async () => {
|
||||
expect(testDetector).to.be.instanceOf(detector.Detector);
|
||||
});
|
||||
|
||||
tap.test('should detect an open port', async () => {
|
||||
tap.test('should detect an closed port on a local domain', async () => {
|
||||
const result = await testDetector.isActive('http://localhost:3008');
|
||||
expect(result).to.be.false;
|
||||
});
|
||||
|
||||
tap.test('should detect an open port on a remote domain', async () => {
|
||||
const result = await testDetector.isActive('https://lossless.com');
|
||||
expect(result).to.be.true;
|
||||
});
|
||||
|
Reference in New Issue
Block a user