Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Switch nullish check to _.isNil
Browse files Browse the repository at this point in the history
Co-authored-by: Ross Knudsen <[email protected]>
  • Loading branch information
dannymcgee and rossknudsen authored Aug 10, 2020
1 parent f7e50a7 commit 484f5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default class JestTestAdapter implements TestAdapter {
}

private logSuite(suiteOrTest?: TestSuiteInfo|TestInfo, depth: number = 0): void {
if (suiteOrTest == null) { return; }
if (_.isNil(suiteOrTest)) { return; }

const indent = (inDepth: number): string => Array(inDepth).fill(" ").join("");

Expand Down

0 comments on commit 484f5d9

Please sign in to comment.