fix(core): update
This commit is contained in:
11
test/test.ts
11
test/test.ts
@ -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();
|
||||
|
Reference in New Issue
Block a user