Skip to content

Commit

Permalink
Update babel-plugin-lodash to version 3.1.3 🚀 (#235)
Browse files Browse the repository at this point in the history
* chore(package): update babel-plugin-lodash to version 3.1.3

* fix(Table-test): update to lodash 4

* refactor(Dropdown-test): update to lodash 4

* refactor(RenderedTree): updated to lodash 4
  • Loading branch information
greenkeeperio-bot authored and levithomason committed May 12, 2016
1 parent 3c785b6 commit 2d73818
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"babel-core": "^6.5.2",
"babel-eslint": "^4.1.6",
"babel-loader": "^6.2.0",
"babel-plugin-lodash": "^2.3.0",
"babel-plugin-lodash": "^3.1.3",
"babel-plugin-react-transform": "^2.0.2",
"babel-preset-es2015": "^6.5.0",
"babel-preset-react": "^6.5.0",
Expand Down
2 changes: 1 addition & 1 deletion test/specs/collections/Table/Table-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Table', () => {
})

beforeEach(() => {
randomDataKey = _.sample(_.keys(_.first(tableData)))
randomDataKey = _.sample(_.keys(_.head(tableData)))
})

describe('defaultProps', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/specs/modules/Dropdown/Dropdown-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe('Dropdown Component', () => {
// make sure last item is selected
wrapper
.find('.selected')
.should.contain.text(_.last(opts).text)
.should.contain.text(_.tail(opts).text)

// menu should be completely scrolled to the bottom
const isMenuScrolledToBottom = menu.scrollTop + menu.clientHeight === menu.scrollHeight
Expand Down
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 2d73818

Please sign in to comment.