Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d1e46fd2a7 | |||
9304e6d736 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/tapbundle",
|
"name": "@pushrocks/tapbundle",
|
||||||
"version": "3.2.13",
|
"version": "3.2.14",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/tapbundle",
|
"name": "@pushrocks/tapbundle",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "3.2.13",
|
"version": "3.2.14",
|
||||||
"description": "tap bundled for tapbuffer",
|
"description": "tap bundled for tapbuffer",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -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;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user