mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 07:07:09 -05:00
no-unused-expressions
This commit is contained in:
@@ -125,7 +125,10 @@ namespace Harness.Parallel.Worker {
|
||||
}
|
||||
|
||||
function addTest(title: string | Mocha.Func | Mocha.AsyncFunc, fn: Mocha.Func | Mocha.AsyncFunc | undefined): Mocha.Test {
|
||||
if (typeof title === "function") fn = title, title = fn.name;
|
||||
if (typeof title === "function") {
|
||||
fn = title;
|
||||
title = fn.name;
|
||||
}
|
||||
const test = new Test(title, suites[0].pending ? undefined : fn);
|
||||
suites[0].addTest(test);
|
||||
return test;
|
||||
@@ -297,4 +300,4 @@ namespace Harness.Parallel.Worker {
|
||||
|
||||
process.on("message", processHostMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user