Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
b52bb4b474 | |||
42f5d66fc4 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartnetwork",
|
"name": "@pushrocks/smartnetwork",
|
||||||
"version": "2.0.13",
|
"version": "2.0.14",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartnetwork",
|
"name": "@pushrocks/smartnetwork",
|
||||||
"version": "2.0.13",
|
"version": "2.0.14",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartnetwork",
|
"name": "@pushrocks/smartnetwork",
|
||||||
"version": "2.0.13",
|
"version": "2.0.14",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "network diagnostics",
|
"description": "network diagnostics",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -11,6 +11,8 @@ tap.test('should create a vlid instance of SmartNetwork', async () => {
|
|||||||
|
|
||||||
tap.test('should send a ping to Google', async () => {
|
tap.test('should send a ping to Google', async () => {
|
||||||
expectAsync(testSmartnetwork.ping('https://lossless.com')).toBeTrue();
|
expectAsync(testSmartnetwork.ping('https://lossless.com')).toBeTrue();
|
||||||
|
expectAsync(testSmartnetwork.ping('https://notthere.lossless.com')).toBeTrue();
|
||||||
|
expectAsync(testSmartnetwork.ping('192.168.186.999')).toBeFalse();
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
Reference in New Issue
Block a user