Skip to content

Commit

Permalink
Fix reactComponentExpect.toBeDOMComponentWithChildCount(0) regression (
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and acusti committed Mar 15, 2017
1 parent 697234d commit 9b56d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/reactComponentExpect.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ Object.assign(reactComponentExpectInternal.prototype, {
if (count > 0) {
expect(renderedChildren).toBeTruthy();
expect(Object.keys(renderedChildren).length).toBe(count);
} else {
expect(renderedChildren).toBeFalsy();
} else if (renderedChildren) {
expect(Object.keys(renderedChildren).length).toBe(0);
}
}
return this;
Expand Down

0 comments on commit 9b56d99

Please sign in to comment.