fix(core): update
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/tapbundle',
|
||||
version: '5.0.14',
|
||||
version: '5.0.15',
|
||||
description: 'tap bundled for tapbuffer'
|
||||
}
|
||||
|
@ -4,7 +4,4 @@ export { webhelpers } from './webhelpers.js';
|
||||
|
||||
import { expect, expectAsync } from '@push.rocks/smartexpect';
|
||||
|
||||
export {
|
||||
expect,
|
||||
expectAsync
|
||||
}
|
||||
export { expect, expectAsync };
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user