Skip to content

Commit

Permalink
update lodash to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Granze committed Jan 19, 2016
1 parent ff06f0f commit 1255639
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-starterify",
"version": "2.2.0",
"version": "2.2.1",
"description": "React JS application skeleton using Browserify and other awesome tools",
"main": "app.js",
"repository": {
Expand Down Expand Up @@ -61,7 +61,7 @@
"gulp-sourcemaps": "^1.5.2",
"gulp-uglify": "^1.4.0",
"imagemin-pngquant": "^4.2.0",
"lodash": "^3.10.1",
"lodash": "^4.0.0",
"postcss-nested": "^1.0.0",
"postcss-simple-extend": "^1.0.0",
"postcss-simple-vars": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/components/About-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import 'babel-core/register';
import { findWhere } from 'lodash';
import { find } from 'lodash';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import About from '../../src/components/About';
Expand All @@ -14,6 +14,6 @@ test('should have a div as container', t => {
});

test('should have an h2 tag containing the text "About"', t => {
t.ok(findWhere(about.props.children, <h2>About</h2>));
t.ok(find(about.props.children, <h2>About</h2>));
});

4 changes: 2 additions & 2 deletions test/components/App-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import 'babel-core/register';
import { findWhere } from 'lodash';
import { find } from 'lodash';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import App from '../../src/components/App';
Expand All @@ -17,7 +17,7 @@ test('should have a div as container', t => {
test('should have a version number that match the package.json version property', t => {
let h1 = app.props.children[0].props.children;

t.ok(findWhere(h1, <h1>React Starterify {version}</h1>));
t.ok(find(h1, <h1>React Starterify {version}</h1>));
});

test('should return something', t => {
Expand Down

0 comments on commit 1255639

Please sign in to comment.