fix(core): update

This commit is contained in:
Philipp Kunz 2022-10-21 12:06:24 +02:00
parent 7faf31147d
commit 72fccebf14
3 changed files with 6 additions and 3 deletions

View File

@ -8,6 +8,11 @@ tap.test('should create an instance of Smartping', async () => {
expect(testPing).toBeInstanceOf(smartping.Smartping); expect(testPing).toBeInstanceOf(smartping.Smartping);
}); });
tap.test('should deliver a ping result', async () => {
const result = await testPing.ping('lossless.com', 1000);
console.log(result);
})
tap.test('should detect alive', async () => { tap.test('should detect alive', async () => {
await expectAsync(testPing.pingAlive('lossless.com', 1000)).toBeTrue(); await expectAsync(testPing.pingAlive('lossless.com', 1000)).toBeTrue();
}) })

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartping', name: '@pushrocks/smartping',
version: '1.0.5', version: '1.0.6',
description: 'a ping utility' description: 'a ping utility'
} }

View File

@ -1,3 +1 @@
import * as plugins from './smartping.plugins.js';
export * from './smartping.classes.smartping.js'; export * from './smartping.classes.smartping.js';