forked from MapComplete/MapComplete
Merge: develop
This commit is contained in:
commit
9cffe6814e
154 changed files with 1199 additions and 41754 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