fix(core): update

This commit is contained in:
2022-10-21 17:13:06 +02:00
parent 15744d3c4e
commit bcfa3be58b
7 changed files with 4537 additions and 18419 deletions

View File

@ -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();