introduce TapWrap
This commit is contained in:
@ -1,8 +1,3 @@
|
||||
import 'typings-global'
|
||||
import { expect } from 'smartchai'
|
||||
import { tap } from './tapbundle.classes.tap'
|
||||
|
||||
export {
|
||||
tap,
|
||||
expect
|
||||
}
|
||||
export { expect } from 'smartchai'
|
||||
export { tap } from './tapbundle.classes.tap'
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as plugins from './tapbundle.plugins'
|
||||
|
||||
import { TapTest, ITestFunction } from './tapbundle.classes.taptest'
|
||||
|
||||
import { TapWrap } from './tapbundle.classes.tapwrap'
|
||||
export class Tap {
|
||||
skip = {
|
||||
test: (...args) => {
|
||||
|
14
ts/tapbundle.classes.tapwrap.ts
Normal file
14
ts/tapbundle.classes.tapwrap.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import * as plugins from './tapbundle.plugins'
|
||||
|
||||
export interface ITapWrapFunction {
|
||||
(): Promise<any>
|
||||
}
|
||||
|
||||
export class TapWrap {
|
||||
asyncFunction: ITapWrapFunction
|
||||
constructor(functionArg: ITapWrapFunction) {
|
||||
// nothing here
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user