[Gradle, JS] Return result of testing function

- It is useful for async testing (Promise returning)
This commit is contained in:
Ilya Goncharov
2019-10-10 17:02:13 +03:00
parent 3b29112885
commit 5c3c196f8e
@@ -55,7 +55,7 @@ export function runWithTeamCityConsoleAdapter(
return () => globalConsole[method] = realMethod
});
try {
fn();
return fn();
} catch (e) {
throw e;
} finally {