fix(core): update
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import { tap, expect } from '@pushrocks/tapbundle';
|
||||
|
||||
import * as webdetector from '../ts/index';
|
||||
import * as webdetector from '../ts/index.js';
|
||||
let testWebDetector: webdetector.WebDetector;
|
||||
|
||||
tap.test('first test', async () => {
|
||||
const testWebDetector = new webdetector.WebDetector({
|
||||
testWebDetector = new webdetector.WebDetector({
|
||||
checkOnlineUrl: 'https://pubapi.lossless.one',
|
||||
});
|
||||
|
||||
@ -21,6 +21,11 @@ tap.test('should be online', async () => {
|
||||
});
|
||||
});
|
||||
|
||||
tap.test('should detect the platform', async () => {
|
||||
const platform = testWebDetector.platform.detectPlatform();
|
||||
console.log(platform);
|
||||
});
|
||||
|
||||
console.log('hi');
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user