chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2023-06-01 14:32:45 +02:00
parent 5665409874
commit 39deec76d2
78 changed files with 953 additions and 493 deletions

View file

@ -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))
}