Skip to content

Commit

Permalink
code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Feb 28, 2019
1 parent 2047e9f commit de73f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/unittests/pytest/services/testMessageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export class TestMessageService implements ITestMessageService {
* @param testResults Details about all known tests.
*/
public async getFilteredTestMessages(rootDirectory: string, testResults: Tests): Promise<IPythonUnitTestMessage[]> {
const testFuncs: FlattenedTestFunction[] = testResults.testFunctions.reduce((filtered, test) => {
const testFuncs = testResults.testFunctions.reduce<FlattenedTestFunction[]>((filtered, test) => {
if (test.testFunction.passed !== undefined || test.testFunction.status === TestStatus.Skipped) {
filtered.push(test as never);
filtered.push(test);
}
return filtered;
}, []);
Expand Down

0 comments on commit de73f86

Please sign in to comment.