Skip to content

Commit

Permalink
[Docs] Fix code example assertions in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarajohn authored and ljharb committed Nov 14, 2017
1 parent e3e1223 commit fc06093
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/exists.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ Returns whether or not the current node exists.

```jsx
const wrapper = mount(<div className="some-class" />);
expect(wrapper.find('.other-class').exists()).to.be(false);
expect(wrapper.find('.other-class').exists()).to.equal(false);
```
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/isEmpty.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Returns whether or not the current node is empty.

```jsx
const wrapper = mount(<div className="some-class" />);
expect(wrapper.find('.other-class').isEmpty()).to.be(true);
expect(wrapper.find('.other-class').isEmpty()).to.equal(true);
```
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/isEmptyRender.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ function Foo() {
}

const wrapper = mount(<Foo />);
expect(wrapper.isEmptyRender()).to.be(true);
expect(wrapper.isEmptyRender()).to.equal(true);
```
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/exists.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ Returns whether or not the current node exists.

```jsx
const wrapper = shallow(<div className="some-class" />);
expect(wrapper.find('.other-class').exists()).to.be(false);
expect(wrapper.find('.other-class').exists()).to.equal(false);
```
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/isEmpty.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Returns whether or not the current node is empty.

```jsx
const wrapper = shallow(<div className="some-class" />);
expect(wrapper.find('.other-class').isEmpty()).to.be(true);
expect(wrapper.find('.other-class').isEmpty()).to.equal(true);
```
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/isEmptyRender.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ function Foo() {
}

const wrapper = shallow(<Foo />);
expect(wrapper.isEmptyRender()).to.be(true);
expect(wrapper.isEmptyRender()).to.equal(true);
```

0 comments on commit fc06093

Please sign in to comment.