smartmanifest/test/test.ts
2023-06-11 22:16:28 +02:00

20 lines
528 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmanifest from '../ts/index.js';
let testSmartManifest: smartmanifest.SmartManifest;
tap.test('first test', async () => {
testSmartManifest = new smartmanifest.SmartManifest({
name: 'test app',
short_name: 'app',
});
expect(testSmartManifest).toBeInstanceOf(smartmanifest.SmartManifest);
});
tap.test('should produce a web app manifest', async () => {
const testData = testSmartManifest.getData();
console.log(testData);
});
tap.start();