Skip to content

Chore: Maintains deps and addresses new linter rules #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-scroll-into-view-if-needed",
"version": "2.1.3",
"version": "2.1.4",
"description": "A thin component wrapper around scroll-into-view-if-needed",
"main": "dist/umd/index.js",
"module": "dist/es/index.js",
Expand Down Expand Up @@ -28,23 +28,23 @@
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"coveralls": "^3.0.1",
"cross-env": "^5.1.6",
"cross-env": "^5.2.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.9.1",
"jest": "^23.1.0",
"prop-types": "^15.6.1",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"rollup": "^0.60.1",
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"rollup": "^0.61.1",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"scroll-into-view-if-needed": "^2.2.5"
"scroll-into-view-if-needed": "^2.2.6"
},
"scripts": {
"build": "rollup -c && cross-env BUILD_TYPE=standalone rollup -c",
Expand Down
8 changes: 6 additions & 2 deletions src/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import React from 'react';
import { shallow } from 'enzyme';
import ScrollIntoViewIfNeeded from '../';
import ScrollIntoViewIfNeeded from '..';
import mockScroll from '../../__mocks__/scroll-into-view-if-needed';

const MockChild = () => (<div>Yo</div>);
const MockChild = () => (
<div>
Yo
</div>
);

test('Render with no props', () => {
const wrapper = shallow(
Expand Down
Loading