Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbay committed Oct 24, 2016
1 parent d6f432c commit 9172828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/ReactWrapper.jsx
Expand Up @@ -602,7 +602,9 @@ class ReactWrapper {
* @returns {ReactWrapper}
*/
parents(selector) {
const allParents = this.wrap(this.single('parents', n => parentsOfInst(n, this.root.getNode())));
const allParents = this.wrap(
this.single('parents', n => parentsOfInst(n, this.root.getNode()))
);
return selector ? allParents.filter(selector) : allParents;
}

Expand Down
6 changes: 4 additions & 2 deletions src/ShallowWrapper.js
Expand Up @@ -152,7 +152,7 @@ class ShallowWrapper {
if (this.root !== this) {
throw new Error('ShallowWrapper::update() can only be called on the root');
}
this.single(() => {
this.single('update', () => {
const instance = this.instance();
if (instance) {
withSetStateAllowed(() => {
Expand Down Expand Up @@ -664,7 +664,9 @@ class ShallowWrapper {
* @returns {ShallowWrapper}
*/
parents(selector) {
const allParents = this.wrap(this.single('parents', n => parentsOfNode(n, this.root.getNode())));
const allParents = this.wrap(
this.single('parents', n => parentsOfNode(n, this.root.getNode()))
);
return selector ? allParents.filter(selector) : allParents;
}

Expand Down

0 comments on commit 9172828

Please sign in to comment.