fix(core): update

This commit is contained in:
2023-08-12 11:40:29 +02:00
parent 1b9f414e82
commit e029c8601f
12 changed files with 234 additions and 193 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/tapbundle',
version: '5.0.14',
version: '5.0.15',
description: 'tap bundled for tapbuffer'
}

View File

@ -4,7 +4,4 @@ export { webhelpers } from './webhelpers.js';
import { expect, expectAsync } from '@push.rocks/smartexpect';
export {
expect,
expectAsync
}
export { expect, expectAsync };

View File

@ -9,9 +9,11 @@ import { HrtMeasurement } from '@push.rocks/smarttime';
// interfaces
export type TTestStatus = 'success' | 'error' | 'pending' | 'errorAfterSuccess' | 'timeout';
export interface ITestFunction <T> { (tapTools?: TapTools): Promise<T> };
export interface ITestFunction<T> {
(tapTools?: TapTools): Promise<T>;
}
export class TapTest <T = unknown> {
export class TapTest<T = unknown> {
public description: string;
public failureAllowed: boolean;
public hrtMeasurement: HrtMeasurement;
@ -27,7 +29,11 @@ export class TapTest <T = unknown> {
/**
* constructor
*/
constructor(optionsArg: { description: string; testFunction: ITestFunction<T>; parallel: boolean }) {
constructor(optionsArg: {
description: string;
testFunction: ITestFunction<T>;
parallel: boolean;
}) {
this.description = optionsArg.description;
this.hrtMeasurement = new HrtMeasurement();
this.parallel = optionsArg.parallel;

View File

@ -8,7 +8,7 @@ class WebHelpers {
constructor() {
const smartenv = new plugins.smartenv.Smartenv();
if(smartenv.isBrowser) {
if (smartenv.isBrowser) {
this.enable();
}
}
@ -18,7 +18,7 @@ class WebHelpers {
const webhelpers = await import('@open-wc/testing');
this.html = webhelpers.html;
this.fixture = webhelpers.fixture;
})
});
}
}