fix(core): update

This commit is contained in:
Philipp Kunz 2021-02-13 16:06:38 +00:00
parent 588c532d6d
commit 9304e6d736

View File

@ -1,10 +1,15 @@
import { tap, expect, webhelpers } from '../ts/index'; import { tap, expect, webhelpers } from '../ts/index';
tap.preTask('hi there', async () => { tap.preTask('custompretask', async () => {
const myElement = webhelpers.fixture(webhelpers.html`<div></div>`);
console.log('this is a pretask'); console.log('this is a pretask');
}); });
tap.test('should have access to webhelpers', async () => {
const myElement = await webhelpers.fixture(webhelpers.html`<div></div>`);
expect(myElement).to.be.instanceOf(HTMLElement);
console.log(myElement);
});
const test1 = tap.test('my first test -> expect true to be true', async () => { const test1 = tap.test('my first test -> expect true to be true', async () => {
return expect(true).to.be.true; return expect(true).to.be.true;
}); });