From f7b0647f64597f18ac95397d5b89b6a5cbfdd71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Wed, 4 Feb 2015 15:19:08 -0800 Subject: [PATCH] Merge pull request #3013 from akheron/patch-2 Document React.addons.TestUtils.isElement() --- docs/docs/10.4-test-utils.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs/10.4-test-utils.md b/docs/docs/10.4-test-utils.md index 6ec358add0..63186f3141 100644 --- a/docs/docs/10.4-test-utils.md +++ b/docs/docs/10.4-test-utils.md @@ -43,6 +43,14 @@ object mockComponent(function componentClass, string? mockTagName) Pass a mocked component module to this method to augment it with useful methods that allow it to be used as a dummy React component. Instead of rendering as usual, the component will become a simple `
` (or other tag if `mockTagName` is provided) containing any provided children. +### isElement + +```javascript +boolean isElement(ReactElement element) +``` + +Returns true if `element` is any ReactElement. + ### isElementOfType ```javascript