Skip to content

Commit b296d03

Browse files
author
Nick
committed
CHORE - Remove Trailing Spaces
1 parent b736f54 commit b296d03

37 files changed

+72
-72
lines changed

CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing Guide
22

3-
Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will
3+
Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will
44
always be given.
55

66

@@ -54,7 +54,7 @@ npm run test:watch
5454

5555
### Style & Linting
5656

57-
This codebase adheres to the [Airbnb Styleguide](https://github.com/airbnb/javascript) and is
57+
This codebase adheres to the [Airbnb Styleguide](https://github.com/airbnb/javascript) and is
5858
enforced using [ESLint](http://eslint.org/).
5959

6060
It is recommended that you install an eslint plugin for your editor of choice when working on this
@@ -86,8 +86,8 @@ Before you submit a pull request from your forked repo, check that it meets thes
8686
1. If the pull request fixes a bug, it should include tests that fail without the changes, and pass
8787
with them.
8888
1. If the pull request adds functionality, the docs should be updated as part of the same PR.
89-
1. The pull request should work for both React 0.14 and React 0.13. The CI server should run the
90-
tests in both versions automatically when you push the PR, but if you'd like to check locally, you
89+
1. The pull request should work for both React 0.14 and React 0.13. The CI server should run the
90+
tests in both versions automatically when you push the PR, but if you'd like to check locally, you
9191
can do so (see above).
9292
1. Please rebase and resolve all conflicts before submitting.
9393

docs/GLOSSARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# selector
22

33
A Selector in enzyme is similar to a CSS selector, but can be a number of other things as well in
4-
order to easily specify a criteria by which you want to find nodes in a enzyme wrapper. See the
4+
order to easily specify a criteria by which you want to find nodes in a enzyme wrapper. See the
55
Selector page for more information.
66

77
# wrapper

docs/api/ReactWrapper/contains.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ the one passed in.
66

77
#### Arguments
88

9-
1. `nodeOrNodes` (`ReactElement|Array<ReactElement>`): The node or array of nodes whose presence you are detecting in the current instance's
10-
render tree.
9+
1. `nodeOrNodes` (`ReactElement|Array<ReactElement>`): The node or array of nodes whose presence you are detecting in the current instance's
10+
render tree.
1111

1212

1313

1414
#### Returns
1515

16-
`Boolean`: whether or not the current wrapper has a node anywhere in it's render tree that looks
16+
`Boolean`: whether or not the current wrapper has a node anywhere in it's render tree that looks
1717
like the one passed in.
1818

1919

@@ -44,7 +44,7 @@ expect(wrapper.contains([
4444

4545
#### Common Gotchas
4646

47-
- `.contains()` expects a ReactElement, not a selector (like many other methods). Make sure that
47+
- `.contains()` expects a ReactElement, not a selector (like many other methods). Make sure that
4848
when you are calling it you are calling it with a ReactElement or a JSX expression.
49-
- Keep in mind that this method determines equality based on the equality of the node's children as
49+
- Keep in mind that this method determines equality based on the equality of the node's children as
5050
well.

docs/api/ReactWrapper/debug.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `.debug() => String`
22

3-
Returns an HTML-like string of the wrapper for debugging purposes. Useful to print out to the
3+
Returns an HTML-like string of the wrapper for debugging purposes. Useful to print out to the
44
console when tests are not passing when you expect them to.
55

66

docs/api/ReactWrapper/detach.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This method will most commonly be used as a "cleanup" method if you decide to us
88
The method is intentionally not "fluent" (in that it doesn't return `this`) because you should
99
not be doing anything with this wrapper after this method is called.
1010

11-
Using the `attachTo` is not generally recommended unless it is absolutely necessary to test
11+
Using the `attachTo` is not generally recommended unless it is absolutely necessary to test
1212
something. It is your responsibility to clean up after yourself at the end of the test if you do
1313
decide to use it, though.
1414

@@ -28,7 +28,7 @@ expect(document.body.childNodes).to.have.length(1);
2828
// detach it to clean up after yourself
2929
wrapper.detach();
3030

31-
// now we can see that
31+
// now we can see that
3232
expect(document.body.childNodes).to.have.length(0);
3333
```
3434

docs/api/ReactWrapper/filterWhere.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `.filterWhere(fn) => ReactWrapper`
22

3-
Returns a new wrapper with only the nodes of the current wrapper that, when passed into the
3+
Returns a new wrapper with only the nodes of the current wrapper that, when passed into the
44
provided predicate function, return true.
55

66

docs/api/ReactWrapper/hasClass.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ expect(wrapper.find('.my-button').hasClass('disabled')).to.equal(true);
2525

2626
### Common Gotchas
2727

28-
- `.hasClass()` expects a class name, NOT a CSS selector. `.hasClass('.foo')` should be
28+
- `.hasClass()` expects a class name, NOT a CSS selector. `.hasClass('.foo')` should be
2929
`.hasClass('foo')`

docs/api/ReactWrapper/map.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ to the map function.
66

77
#### Arguments
88

9-
1. `fn` (`Function ( ReactWrapper node ) => Any`): A mapping function to be run for every node in
10-
the collection, the results of which will be mapped to the returned array. Should expect a ReactWrapper as the first argument, and will be run with a context of
9+
1. `fn` (`Function ( ReactWrapper node ) => Any`): A mapping function to be run for every node in
10+
the collection, the results of which will be mapped to the returned array. Should expect a ReactWrapper as the first argument, and will be run with a context of
1111
the original instance.
1212

1313

docs/api/ReactWrapper/not.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `.not(selector) => ReactWrapper`
22

3-
Returns a new wrapper with only the nodes of the current wrapper that don't match the provided
3+
Returns a new wrapper with only the nodes of the current wrapper that don't match the provided
44
selector.
55

66
This method is effectively the negation or inverse of [`filter`](filter.md).

docs/api/ReactWrapper/prop.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `.prop(key) => Any`
22

3-
Returns the prop value for the node of the current wrapper with the provided key.
3+
Returns the prop value for the node of the current wrapper with the provided key.
44

55
NOTE: can only be called on a wrapper of a single node.
66

77
#### Arguments
88

9-
1. `key` (`String`): The prop name such that this will return value will be the `this.props[key]`
9+
1. `key` (`String`): The prop name such that this will return value will be the `this.props[key]`
1010
of the component instance.
1111

1212

docs/api/ReactWrapper/reduce.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `.reduce(fn[, initialValue]) => Any`
22

3-
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
3+
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
44
Each node is passed in as a `ReactWrapper`, and is processed from left to right.
55

66

77
#### Arguments
88

9-
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
9+
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
1010
following arguments:
1111
- `value` (`T`): The value returned by the previous invocation of this function
1212
- `node` (`ReactWrapper`): A wrapper around the current node being processed

docs/api/ReactWrapper/reduceRight.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `.reduceRight(fn[, initialValue]) => Any`
22

3-
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
3+
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
44
Each node is passed in as a `ReactWrapper`, and is processed from right to left.
55

66

77
#### Arguments
88

9-
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
9+
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
1010
following arguments:
1111
- `value` (`T`): The value returned by the previous invocation of this function
1212
- `node` (`ReactWrapper`): A wrapper around the current node being processed

docs/api/ReactWrapper/setContext.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
88

99
#### Arguments
1010

11-
1. `context` (`Object`): An object containing new props to merge in with the current state
11+
1. `context` (`Object`): An object containing new props to merge in with the current state
1212

1313

1414

docs/api/ReactWrapper/setProps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
1212

1313
#### Arguments
1414

15-
1. `props` (`Object`): An object containing new props to merge in with the current state
15+
1. `props` (`Object`): An object containing new props to merge in with the current state
1616

1717

1818

docs/api/ReactWrapper/setState.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
1111

1212
#### Arguments
1313

14-
1. `state` (`Object`): An object containing new state to merge in with the current state
14+
1. `state` (`Object`): An object containing new state to merge in with the current state
1515

1616

1717

docs/api/ReactWrapper/simulate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Simulate events
66
#### Arguments
77

88
1. `event` (`String`): The event name to be simulated
9-
2. `...args` (`Any` [optional]): A mock event object that will get passed through to the event
9+
2. `...args` (`Any` [optional]): A mock event object that will get passed through to the event
1010
handlers.
1111

1212

docs/api/ReactWrapper/text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Note: can only be called on a wrapper of a single node.
99

1010
#### Returns
1111

12-
`String`: The resulting string
12+
`String`: The resulting string
1313

1414

1515

docs/api/ShallowWrapper/debug.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `.debug() => String`
22

3-
Returns an HTML-like string of the wrapper for debugging purposes. Useful to print out to the
3+
Returns an HTML-like string of the wrapper for debugging purposes. Useful to print out to the
44
console when tests are not passing when you expect them to.
55

66

@@ -38,12 +38,12 @@ Outputs to console:
3838
3939
```jsx
4040
const wrapper = shallow(
41-
<Book
41+
<Book
4242
title="Huckleberry Finn"
43-
cover={{
44-
url: 'http://some.url/to/img.png',
45-
width: 40,
46-
height: 80
43+
cover={{
44+
url: 'http://some.url/to/img.png',
45+
width: 40,
46+
height: 80
4747
}}
4848
/>
4949
);

docs/api/ShallowWrapper/filterWhere.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `.filterWhere(fn) => ShallowWrapper`
22

3-
Returns a new wrapper with only the nodes of the current wrapper that, when passed into the
3+
Returns a new wrapper with only the nodes of the current wrapper that, when passed into the
44
provided predicate function, return true.
55

66

docs/api/ShallowWrapper/hasClass.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ expect(wrapper.find('.my-button').hasClass('disabled')).to.equal(true);
2525

2626
### Common Gotchas
2727

28-
- `.hasClass()` expects a class name, NOT a CSS selector. `.hasClass('.foo')` should be
28+
- `.hasClass()` expects a class name, NOT a CSS selector. `.hasClass('.foo')` should be
2929
`.hasClass('foo')`

docs/api/ShallowWrapper/map.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ to the map function.
66

77
#### Arguments
88

9-
1. `fn` (`Function ( ShallowWrapper node ) => Any`): A mapping function to be run for every node in
10-
the collection, the results of which will be mapped to the returned array. Should expect a ShallowWrapper as the first argument, and will be run with a context of
9+
1. `fn` (`Function ( ShallowWrapper node ) => Any`): A mapping function to be run for every node in
10+
the collection, the results of which will be mapped to the returned array. Should expect a ShallowWrapper as the first argument, and will be run with a context of
1111
the original instance.
1212

1313

docs/api/ShallowWrapper/not.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `.not(selector) => ShallowWrapper`
22

3-
Returns a new wrapper with only the nodes of the current wrapper that don't match the provided
3+
Returns a new wrapper with only the nodes of the current wrapper that don't match the provided
44
selector.
55

66
This method is effectively the negation or inverse of [`filter`](filter.md).

docs/api/ShallowWrapper/prop.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `.prop(key) => Any`
22

3-
Returns the prop value for the node of the current wrapper with the provided key.
3+
Returns the prop value for the node of the current wrapper with the provided key.
44

55
NOTE: can only be called on a wrapper of a single node.
66

77
#### Arguments
88

9-
1. `key` (`String`): The prop name such that this will return value will be the `this.props[key]`
9+
1. `key` (`String`): The prop name such that this will return value will be the `this.props[key]`
1010
of the component instance.
1111

1212

docs/api/ShallowWrapper/reduce.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `.reduce(fn[, initialValue]) => Any`
22

3-
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
3+
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
44
Each node is passed in as a `ShallowWrapper`, and is processed from left to right.
55

66

77
#### Arguments
88

9-
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
9+
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
1010
following arguments:
1111
- `value` (`T`): The value returned by the previous invocation of this function
1212
- `node` (`ShallowWrapper`): A wrapper around the current node being processed

docs/api/ShallowWrapper/reduceRight.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `.reduceRight(fn[, initialValue]) => Any`
22

3-
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
3+
Applies the provided reducing function to every node in the wrapper to reduce to a single value.
44
Each node is passed in as a `ShallowWrapper`, and is processed from right to left.
55

66

77
#### Arguments
88

9-
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
9+
1. `fn` (`Function`): A reducing function to be run for every node in the collection, with the
1010
following arguments:
1111
- `value` (`T`): The value returned by the previous invocation of this function
1212
- `node` (`ShallowWrapper`): A wrapper around the current node being processed

docs/api/ShallowWrapper/setContext.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
88

99
#### Arguments
1010

11-
1. `context` (`Object`): An object containing new props to merge in with the current state
11+
1. `context` (`Object`): An object containing new props to merge in with the current state
1212

1313

1414

docs/api/ShallowWrapper/setProps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
1212

1313
#### Arguments
1414

15-
1. `props` (`Object`): An object containing new props to merge in with the current state
15+
1. `props` (`Object`): An object containing new props to merge in with the current state
1616

1717

1818

docs/api/ShallowWrapper/setState.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
1111

1212
#### Arguments
1313

14-
1. `state` (`Object`): An object containing new state to merge in with the current state
14+
1. `state` (`Object`): An object containing new state to merge in with the current state
1515

1616

1717

docs/api/ShallowWrapper/simulate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Simulate events
66
#### Arguments
77

88
1. `event` (`String`): The event name to be simulated
9-
2. `...args` (`Any` [optional]): A mock event object that will get passed through to the event
9+
2. `...args` (`Any` [optional]): A mock event object that will get passed through to the event
1010
handlers.
1111

1212

docs/api/ShallowWrapper/text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Note: can only be called on a wrapper of a single node.
99

1010
#### Returns
1111

12-
`String`: The resulting string
12+
`String`: The resulting string
1313

1414

1515

docs/api/render.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Static Rendering API
22

3-
Enzyme's `render` function is used to render react components to static HTML and analyze the
3+
Enzyme's `render` function is used to render react components to static HTML and analyze the
44
resulting HTML structure.
55

6-
`render` returns a wrapper very similar to the other renderers in enzyme, [`mount`](mount.md) and
7-
[`shallow`](shallow.md); however, `render` uses a third party HTML parsing and traversal library
8-
[Cheerio](http://cheeriojs.github.io/cheerio/). We believe that Cheerio handles parsing and
9-
traversing HTML extremely well, and duplicating this functionality ourselves would be a
6+
`render` returns a wrapper very similar to the other renderers in enzyme, [`mount`](mount.md) and
7+
[`shallow`](shallow.md); however, `render` uses a third party HTML parsing and traversal library
8+
[Cheerio](http://cheeriojs.github.io/cheerio/). We believe that Cheerio handles parsing and
9+
traversing HTML extremely well, and duplicating this functionality ourselves would be a
1010
disservice.
11-
12-
For the purposes of this documentation, we will refer to Cheerio's constructor as
11+
12+
For the purposes of this documentation, we will refer to Cheerio's constructor as
1313
`CheerioWrapper`, which is to say that it is analogous to our `ReactWrapper` and `ShallowWrapper`
1414
constructors.
1515

0 commit comments

Comments
 (0)