Skip to content

Commit

Permalink
Merge branch 'master' into mauriciosoares-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciosoares committed Feb 16, 2016
2 parents bedf4c6 + 995f142 commit 9ae5bea
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 23 deletions.
14 changes: 7 additions & 7 deletions docs/api/mount.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,25 +165,25 @@ Iterates through each node of the current wrapper and executes the provided func
#### [`.map(fn) => Array`](ReactWrapper/map.md)
Maps the current array of nodes to another array.

#### [`reduce(fn[, initialValue]) => Any`](/docs/api/ReactWrapper/reduce.md)
#### [`.reduce(fn[, initialValue]) => Any`](/docs/api/ReactWrapper/reduce.md)
Reduces the current array of nodes to a value

#### [`reduceRight(fn[, initialValue]) => Any`](/docs/api/ReactWrapper/reduceRight.md)
#### [`.reduceRight(fn[, initialValue]) => Any`](/docs/api/ReactWrapper/reduceRight.md)
Reduces the current array of nodes to a value, from right to left.

#### [`some(selector) => Boolean`](/docs/api/ReactWrapper/some.md)
#### [`.some(selector) => Boolean`](/docs/api/ReactWrapper/some.md)
Returns whether or not any of the nodes in the wrapper match the provided selector.

#### [`someWhere(predicate) => Boolean`](/docs/api/ReactWrapper/someWHere.md)
#### [`.someWhere(predicate) => Boolean`](/docs/api/ReactWrapper/someWHere.md)
Returns whether or not any of the nodes in the wrapper pass the provided predicate function.

#### [`every(selector) => Boolean`](/docs/api/ReactWrapper/every.md)
#### [`.every(selector) => Boolean`](/docs/api/ReactWrapper/every.md)
Returns whether or not all of the nodes in the wrapper match the provided selector.

#### [`everyWhere(selector) => Boolean`](/docs/api/ReactWrapper/everyWhere.md)
#### [`.everyWhere(predicate) => Boolean`](/docs/api/ReactWrapper/everyWhere.md)
Returns whether or not any of the nodes in the wrapper pass the provided predicate function.

#### [`ref(refName) => ReactWrapper`](/docs/api/ReactWrapper/ref.md)
#### [`.ref(refName) => ReactWrapper`](/docs/api/ReactWrapper/ref.md)
Returns a wrapper of the node that matches the provided reference name.

#### [`.detach() => void`](ReactWrapper/detach.md)
Expand Down
12 changes: 6 additions & 6 deletions docs/api/shallow.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,20 @@ Iterates through each node of the current wrapper and executes the provided func
#### [`.map(fn) => Array`](ShallowWrapper/map.md)
Maps the current array of nodes to another array.

#### [`reduce(fn[, initialValue]) => Any`](/docs/api/ShallowWrapper/reduce.md)
#### [`.reduce(fn[, initialValue]) => Any`](/docs/api/ShallowWrapper/reduce.md)
Reduces the current array of nodes to a value

#### [`reduceRight(fn[, initialValue]) => Any`](/docs/api/ShallowWrapper/reduceRight.md)
#### [`.reduceRight(fn[, initialValue]) => Any`](/docs/api/ShallowWrapper/reduceRight.md)
Reduces the current array of nodes to a value, from right to left.

#### [`some(selector) => Boolean`](/docs/api/ShallowWrapper/some.md)
#### [`.some(selector) => Boolean`](/docs/api/ShallowWrapper/some.md)
Returns whether or not any of the nodes in the wrapper match the provided selector.

#### [`someWhere(predicate) => Boolean`](/docs/api/ShallowWrapper/someWhere.md)
#### [`.someWhere(predicate) => Boolean`](/docs/api/ShallowWrapper/someWhere.md)
Returns whether or not any of the nodes in the wrapper pass the provided predicate function.

#### [`every(selector) => Boolean`](/docs/api/ShallowWrapper/every.md)
#### [`.every(selector) => Boolean`](/docs/api/ShallowWrapper/every.md)
Returns whether or not all of the nodes in the wrapper match the provided selector.

#### [`everyWhere(selector) => Boolean`](/docs/api/ShallowWrapper/everyWhere.md)
#### [`.everyWhere(predicate) => Boolean`](/docs/api/ShallowWrapper/everyWhere.md)
Returns whether or not all of the nodes in the wrapper pass the provided predicate function.
3 changes: 1 addition & 2 deletions docs/guides/jest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Using Jest with Enzyme

If you are using Jest with enzyme and using Jest's "automocking" feature, you will need to mark
If you are using Jest with enzyme and using Jest's "automocking" feature, you will need to mark
several modules to be unmocked in your `package.json`:

```js
Expand All @@ -16,7 +16,6 @@ several modules to be unmocked in your `package.json`:
"enzyme",
"cheerio",
"htmlparser2",
"underscore",
"lodash",
"domhandler",
"object.assign",
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/karma.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Using Enzyme with Karma

Karma is a popular test runner that can run tests in browser environments. Enzyme is compatible with
enzyme, but often requires a little bit of configuration.
Karma, but often requires a little bit of configuration.

This configuration largely depends on which plugins you are using to bundle your JavaScript code. In
the case of Browserify or Webpack, see the below documentation in order to get these up and running.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"dependencies": {
"cheerio": "^0.20.0",
"is-subset": "^0.1.1",
"lodash": "^4.0.0",
"object.assign": "^4.0.3",
"object.values": "^1.0.3",
"underscore": "^1.8.3"
"object.values": "^1.0.3"
},
"devDependencies": {
"babel-cli": "^6.3.17",
Expand Down
4 changes: 3 additions & 1 deletion src/Debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import {
import {
propsOfNode,
} from './Utils';
import { without, escape, compact } from 'underscore';
import without from 'lodash/without';
import escape from 'lodash/escape';
import compact from 'lodash/compact';
import { REACT013, REACT014 } from './version';
import objectValues from 'object.values';

Expand Down
2 changes: 1 addition & 1 deletion src/MountedTraversal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isEmpty } from 'underscore';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import {
coercePropValue,
Expand Down
4 changes: 3 additions & 1 deletion src/ReactWrapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import cheerio from 'cheerio';
import { flatten, unique, compact } from 'underscore';
import flatten from 'lodash/flatten';
import unique from 'lodash/uniq';
import compact from 'lodash/compact';
import createWrapperComponent from './ReactWrapperComponent';
import {
instHasClassName,
Expand Down
2 changes: 1 addition & 1 deletion src/ShallowTraversal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { isEmpty } from 'underscore';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import {
coercePropValue,
Expand Down
4 changes: 3 additions & 1 deletion src/ShallowWrapper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';
import { flatten, unique, compact } from 'underscore';
import flatten from 'lodash/flatten';
import unique from 'lodash/uniq';
import compact from 'lodash/compact';
import cheerio from 'cheerio';
import {
nodeEqual,
Expand Down

0 comments on commit 9ae5bea

Please sign in to comment.