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 9d11d58 + 7b31f36 commit 82713f1
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/api/mount.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Returns whether or not any of the nodes in the wrapper pass the provided predica
#### [`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)
Expand Down
2 changes: 1 addition & 1 deletion docs/api/shallow.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,5 @@ Returns whether or not any of the nodes in the wrapper pass the provided predica
#### [`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 82713f1

Please sign in to comment.