fix(core): update

This commit is contained in:
2023-06-11 16:09:06 +02:00
parent 4d6ae3ba87
commit e6c15b2d81
5 changed files with 91 additions and 71 deletions

View File

@ -1,6 +1,6 @@
import { tap, expect } from '@pushrocks/tapbundle';
import * as webdetector from '../ts/index.js';
import * as webdetector from '../ts/webdetector.classes.webdetector.js';
let testWebDetector: webdetector.WebDetector;
tap.test('first test', async () => {
@ -27,6 +27,11 @@ tap.test('should detect the platform', async () => {
console.log(platform);
});
tap.test('should detect if the app is installed', async () => {
const isInstalled = testWebDetector.pwa.isInstalled();
expect(isInstalled).toBeFalse();
});
console.log('hi');
tap.start();