fix(core): update
This commit is contained in:
@ -10,9 +10,16 @@ tap.test('should create a vlid instance of SmartNetwork', async () => {
|
||||
});
|
||||
|
||||
tap.test('should send a ping to Google', async () => {
|
||||
expectAsync(testSmartnetwork.ping('https://lossless.com')).toBeTrue();
|
||||
expectAsync(testSmartnetwork.ping('https://notthere.lossless.com')).toBeTrue();
|
||||
expectAsync(testSmartnetwork.ping('192.168.186.999')).toBeFalse();
|
||||
console.log(await testSmartnetwork.ping('google.com'));
|
||||
await expectAsync(testSmartnetwork.ping('google.com')).property('alive').toBeTrue();
|
||||
});
|
||||
|
||||
tap.test('should state when a ping is not alive ', async () => {
|
||||
await expectAsync(testSmartnetwork.ping('notthere.lossless.com')).property('alive').toBeFalse();
|
||||
});
|
||||
|
||||
tap.test('should send a ping to an IP', async () => {
|
||||
await expectAsync(testSmartnetwork.ping('192.168.186.999')).property('alive').toBeFalse();
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user