From 6396b4c51a4d6277ee4fbe4833f2e5f73ec42b9a Mon Sep 17 00:00:00 2001 From: rnsloan Date: Tue, 10 May 2016 01:09:53 +1000 Subject: [PATCH] add docs related methods for .at() and .get() --- docs/api/ReactWrapper/at.md | 6 ++++++ docs/api/ReactWrapper/get.md | 6 ++++++ docs/api/ShallowWrapper/at.md | 6 ++++++ docs/api/ShallowWrapper/get.md | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/docs/api/ReactWrapper/at.md b/docs/api/ReactWrapper/at.md index 87703b8e6..714b5ea0e 100644 --- a/docs/api/ReactWrapper/at.md +++ b/docs/api/ReactWrapper/at.md @@ -21,3 +21,9 @@ Returns a wrapper around the node at a given index of the current wrapper. const wrapper = mount(); expect(wrapper.find(Foo).at(0).props().foo).to.equal("bar"); ``` + + + +#### Related Methods + +- [`.get(index) => ReactElement`](get.md) diff --git a/docs/api/ReactWrapper/get.md b/docs/api/ReactWrapper/get.md index 13e7c526d..876683c5a 100644 --- a/docs/api/ReactWrapper/get.md +++ b/docs/api/ReactWrapper/get.md @@ -21,3 +21,9 @@ Returns the node at a given index of the current wrapper. const wrapper = mount(); expect(wrapper.find(Foo).get(0).props.foo).to.equal("bar"); ``` + + + +#### Related Methods + +- [`.at(index) => ReactWrapper`](at.md) diff --git a/docs/api/ShallowWrapper/at.md b/docs/api/ShallowWrapper/at.md index 347b7d259..ef3334cc3 100644 --- a/docs/api/ShallowWrapper/at.md +++ b/docs/api/ShallowWrapper/at.md @@ -21,3 +21,9 @@ Returns a wrapper around the node at a given index of the current wrapper. const wrapper = shallow(); expect(wrapper.find(Foo).at(0).props().foo).to.equal("bar"); ``` + + + +#### Related Methods + +- [`.get(index) => ReactElement`](get.md) diff --git a/docs/api/ShallowWrapper/get.md b/docs/api/ShallowWrapper/get.md index 14640e624..0627333d0 100644 --- a/docs/api/ShallowWrapper/get.md +++ b/docs/api/ShallowWrapper/get.md @@ -21,3 +21,9 @@ Returns the node at a given index of the current wrapper. const wrapper = shallow(); expect(wrapper.find(Foo).get(0).props.foo).to.equal("bar"); ``` + + + +#### Related Methods + +- [`.at(index) => ShallowWrapper`](at.md)