fix(core): update

This commit is contained in:
2022-10-21 11:55:42 +02:00
parent f479c11574
commit d479cd9e7e
7 changed files with 69 additions and 6 deletions

View File

@ -1,8 +1,15 @@
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
import * as smartping from '../ts/index.js';
tap.test('first test', async () => {
console.log(smartping);
let testPing: smartping.Smartping;
tap.test('should create an instance of Smartping', async () => {
testPing = new smartping.Smartping();
expect(testPing).toBeInstanceOf(smartping.Smartping);
});
tap.test('should detect alive', async () => {
await expectAsync(testPing.pingAlive('lossless.com', 1000)).toBeTrue();
})
tap.start();