fix(core): update
This commit is contained in:
16
test/test.ping.ts
Normal file
16
test/test.ping.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import {tap, expect, expectAsync} from '@pushrocks/tapbundle';
|
||||
|
||||
import * as smartnetwork from '../ts';
|
||||
|
||||
let testSmartnetwork: smartnetwork.SmartNetwork;
|
||||
|
||||
tap.test('should create a vlid instance of SmartNetwork', async () => {
|
||||
testSmartnetwork = new smartnetwork.SmartNetwork();
|
||||
expect(testSmartnetwork).toBeInstanceOf(smartnetwork.SmartNetwork);
|
||||
})
|
||||
|
||||
tap.test('should send a ping to Google', async () => {
|
||||
expectAsync(testSmartnetwork.ping('https://lossless.com')).toBeTrue();
|
||||
})
|
||||
|
||||
tap.start();
|
Reference in New Issue
Block a user