smartmanifest/test/test.ts

20 lines
528 B
TypeScript
Raw Permalink Normal View History

2019-05-27 11:13:41 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2023-06-11 20:16:28 +00:00
import * as smartmanifest from '../ts/index.js';
2019-05-27 11:35:07 +00:00
let testSmartManifest: smartmanifest.SmartManifest;
2019-05-27 11:13:41 +00:00
tap.test('first test', async () => {
2019-05-27 11:35:07 +00:00
testSmartManifest = new smartmanifest.SmartManifest({
name: 'test app',
2023-06-11 20:16:28 +00:00
short_name: 'app',
2019-05-27 11:35:07 +00:00
});
2023-06-11 20:16:28 +00:00
expect(testSmartManifest).toBeInstanceOf(smartmanifest.SmartManifest);
2019-05-27 11:35:07 +00:00
});
tap.test('should produce a web app manifest', async () => {
const testData = testSmartManifest.getData();
console.log(testData);
});
2019-05-27 11:13:41 +00:00
2019-05-27 11:35:07 +00:00
tap.start();