smartmanifest/test/test.ts

20 lines
526 B
TypeScript
Raw Normal View History

2019-05-27 11:13:41 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2019-05-27 11:35:07 +00:00
import * as smartmanifest from '../ts/index';
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',
short_name: 'app'
});
expect(testSmartManifest).to.be.instanceOf(smartmanifest.SmartManifest);
});
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();