fix(tests): Update dev dependencies and refactor test assertions for improved clarity

This commit is contained in:
2025-05-19 09:15:42 +00:00
parent 771bfe94e7
commit 7c88ecd82a
8 changed files with 656 additions and 1656 deletions

View File

@ -1,4 +1,4 @@
import { tap, expect, expectAsync } from '@push.rocks/tapbundle';
import { tap, expect } from '@git.zone/tstest/tapbundle';
import * as smartnetwork from '../ts/index.js';
@ -20,11 +20,11 @@ tap.test('should send a ping to Google', async () => {
});
tap.test('should state when a ping is not alive ', async () => {
await expectAsync(testSmartnetwork.ping('notthere.lossless.com')).property('alive').toBeFalse();
await expect(testSmartnetwork.ping('notthere.lossless.com')).resolves.property('alive').toBeFalse();
});
tap.test('should send a ping to an IP', async () => {
await expectAsync(testSmartnetwork.ping('192.168.186.999')).property('alive').toBeFalse();
await expect(testSmartnetwork.ping('192.168.186.999')).resolves.property('alive').toBeFalse();
});
tap.start();