webdetector/test/test.ts
2018-12-18 17:58:06 +01:00

17 lines
530 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as webdetector from '../ts/index'
let testWebDetector: webdetector.WebDetector;
tap.test('should create a valid instance of webdetector', async () => {
testWebDetector = new webdetector.WebDetector();
expect(testWebDetector).to.be.instanceOf(webdetector.WebDetector);
})
tap.test('should determine if we are currently online', async () => {
let onlineResultBoolean = await testWebDetector.isOnline();
expect(onlineResultBoolean).to.be.true;
});
tap.start()