BREAKING CHANGE(smartnetwork): Enhance documentation and add configurable speed test options with plugin architecture improvements

This commit is contained in:
2025-04-28 19:27:13 +00:00
parent d6be2e27b0
commit 26e1d5142a
10 changed files with 663 additions and 175 deletions

View File

@ -10,8 +10,13 @@ tap.test('should create a vlid instance of SmartNetwork', async () => {
});
tap.test('should send a ping to Google', async () => {
console.log(await testSmartnetwork.ping('google.com'));
await expectAsync(testSmartnetwork.ping('google.com')).property('alive').toBeTrue();
const res = await testSmartnetwork.ping('google.com');
console.log(res);
// verify basic ping response properties
expect(res.alive).toBeTrue();
expect(res.time).toBeTypeofNumber();
expect(res.output).toBeTypeofString();
expect(res.output).toMatch(/PING google\.com/);
});
tap.test('should state when a ping is not alive ', async () => {