19 lines
459 B
TypeScript
19 lines
459 B
TypeScript
import { expect, tap, webhelpers } from '@pushrocks/tapbundle';
|
|
webhelpers.enable();
|
|
|
|
import * as websetup from '../ts/index.js';
|
|
|
|
tap.test('first test', async () => {
|
|
const websetupInstance = new websetup.WebSetup({
|
|
metaObject: {
|
|
description: 'A awesome description',
|
|
title: 'mytitle',
|
|
canonicalDomain: 'lossless.com',
|
|
},
|
|
});
|
|
await websetupInstance.readyPromise;
|
|
expect(document.title).toEqual('mytitle');
|
|
});
|
|
|
|
tap.start();
|