Skip to content

Commit

Permalink
[Docs] tweak isEmptyRender docs and test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 1, 2017
1 parent 80a74b4 commit 925d6d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/isEmptyRender.md
@@ -1,6 +1,6 @@
# `.isEmptyRender() => Boolean`

Returns whether or not the current component returns a falsy value: `false`, `null`, `undefined`.
Returns whether or not the current component returns one of the allowed falsy values: `false` or `null`.

#### Returns

Expand Down
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/isEmptyRender.md
@@ -1,6 +1,6 @@
# `.isEmptyRender() => Boolean`

Returns whether or not the current component returns a falsy value: `false`, `null`, `undefined`.
Returns whether or not the current component returns one of the allowed falsy values: `false` or `null`.

#### Returns

Expand Down
2 changes: 2 additions & 0 deletions test/_helpers/index.jsx
Expand Up @@ -95,8 +95,10 @@ export function generateEmptyRenderData() {
// Returns true for empty
{ message: 'false', value: false, expectResponse: true },
{ message: 'null', value: null, expectResponse: true },

// Returns false for empty, valid returns
{ message: 'React component', value: <TestHelper />, expectResponse: false },
{ message: 'React element', value: <span />, expectResponse: false },
{ message: 'React element', value: <noscript />, expectResponse: false },
];
}

0 comments on commit 925d6d8

Please sign in to comment.