From 72fccebf14da58ea945e658390193f1b00ba3481 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 21 Oct 2022 12:06:24 +0200 Subject: [PATCH] fix(core): update --- test/test.ts | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 2 -- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test.ts b/test/test.ts index 2717bfc..e3b2f9c 100644 --- a/test/test.ts +++ b/test/test.ts @@ -8,6 +8,11 @@ tap.test('should create an instance of Smartping', async () => { 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 () => { await expectAsync(testPing.pingAlive('lossless.com', 1000)).toBeTrue(); }) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 4a0791f..5c8c640 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartping', - version: '1.0.5', + version: '1.0.6', description: 'a ping utility' } diff --git a/ts/index.ts b/ts/index.ts index 1ddb9aa..4dc1c48 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,3 +1 @@ -import * as plugins from './smartping.plugins.js'; - export * from './smartping.classes.smartping.js';