websetup/test/test.browser.ts

17 lines
423 B
TypeScript
Raw Permalink Normal View History

2020-07-08 11:10:20 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as websetup from '../ts/index';
tap.test('first test', async () => {
const websetupInstance = new websetup.WebSetup({
metaObject: {
description: 'A awesome description',
title: 'mytitle',
2020-11-04 18:09:07 +00:00
canonicalDomain: 'lossless.com',
},
2020-07-08 11:10:20 +00:00
});
2020-11-04 18:02:02 +00:00
await websetupInstance.readyPromise;
2020-07-08 11:10:20 +00:00
expect(document.title).to.equal('mytitle');
});
tap.start();