introduce TapWrap

This commit is contained in:
2017-07-05 17:57:28 +02:00
parent c5e068d5cd
commit 15bbf7f10c
6 changed files with 384 additions and 25 deletions

View File

@ -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'

View File

@ -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) => {

View 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
}
}