Skip to content

Commit

Permalink
refactor(RenderedTree): updated to lodash 4
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed May 12, 2016
1 parent 191ec49 commit 74ea907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils/RenderedTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ export default class RenderedTree {
* @returns {ReactComponent} first React component in rendered tree.
*/
first() {
return _.first(this.all)
return _.head(this.all)
}

/**
* Find last React element in the rendered tree.
* @returns {ReactComponent} last React component in rendered tree.
*/
last() {
return _.last(this.all)
return _.tail(this.all)
}

/**
Expand Down

0 comments on commit 74ea907

Please sign in to comment.