websetup/test/test.browser.ts

19 lines
459 B
TypeScript
Raw Normal View History

2021-12-10 17:03:46 +00:00
import { expect, tap, webhelpers } from '@pushrocks/tapbundle';
webhelpers.enable();
2023-05-07 18:24:53 +00:00
import * as websetup from '../ts/index.js';
2020-07-08 11:10:20 +00:00
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;
2023-05-07 18:24:53 +00:00
expect(document.title).toEqual('mytitle');
2020-07-08 11:10:20 +00:00
});
tap.start();