
committed by
Miško Hevery

parent
1ae77da609
commit
6ab5f3648a
@ -26,7 +26,7 @@ Zone.__load_patch('asynctest', (global: any, Zone: ZoneType, api: _ZonePrivate)
|
||||
}
|
||||
runInTestZone(fn, this, done, (err: any) => {
|
||||
if (typeof err === 'string') {
|
||||
return done.fail(new Error(<string>err));
|
||||
return done.fail(new Error(err));
|
||||
} else {
|
||||
done.fail(err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user