From 6bffe1775f3929d53f7f786e5b71e4a0e0aba8ae Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 7 Dec 2016 16:49:53 -0800 Subject: [PATCH] Fix lint error --- .travis.yml | 1 - CONTRIBUTING.md | 2 +- package.json | 5 +++-- src/components/Image/__tests__/index-test.js | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1cfe8da9..6fde6487 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,4 @@ before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start script: - - npm run lint - npm test diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 75966b20..474462e1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,7 +57,7 @@ To continuously watch and run tests, run the following: npm run test:watch ``` -To perform linting, run the following: +To perform only linting, run the following: ``` npm run lint diff --git a/package.json b/package.json index 1f12163c..2c4590b1 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,9 @@ "examples": "start-storybook -p 9001 -c ./examples/.storybook --dont-track", "lint": "eslint src", "prepublish": "npm run build && npm run build:umd", - "test": "jest", - "test:watch": "npm run test -- --watch" + "test": "npm run lint && npm run test:jest", + "test:jest": "jest", + "test:watch": "npm run test:jest -- --watch" }, "dependencies": { "animated": "^0.1.3", diff --git a/src/components/Image/__tests__/index-test.js b/src/components/Image/__tests__/index-test.js index 9939228e..d62b57e0 100644 --- a/src/components/Image/__tests__/index-test.js +++ b/src/components/Image/__tests__/index-test.js @@ -93,7 +93,8 @@ describe('components/Image', () => { }); test('passes other props through to underlying View', () => { - const component = renderer.create( {}} />); + const fn = () => {}; + const component = renderer.create(); expect(component.toJSON()).toMatchSnapshot(); }); });