chore: automated housekeeping...
This commit is contained in:
parent
5665409874
commit
39deec76d2
78 changed files with 953 additions and 493 deletions
|
@ -54,13 +54,13 @@ function detectInCode(forbidden: string, reason: string): Promise<void> {
|
|||
})
|
||||
}
|
||||
|
||||
function wrap(promise: Promise<void>): ((done: () => void) => void) {
|
||||
return (done => {
|
||||
function wrap(promise: Promise<void>): (done: () => void) => void {
|
||||
return (done) => {
|
||||
promise.then(done)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function itAsync(name: string, promise: Promise<void>){
|
||||
function itAsync(name: string, promise: Promise<void>) {
|
||||
it(name, wrap(promise))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue