Fix lint error

This commit is contained in:
Nicolas Gallagher
2016-12-07 16:49:53 -08:00
parent 7e75d037f2
commit 6bffe1775f
4 changed files with 6 additions and 5 deletions
-1
View File
@@ -5,5 +5,4 @@ before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- npm run lint
- npm test
+1 -1
View File
@@ -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
+3 -2
View File
@@ -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",
+2 -1
View File
@@ -93,7 +93,8 @@ describe('components/Image', () => {
});
test('passes other props through to underlying View', () => {
const component = renderer.create(<Image onResponderGrant={() => {}} />);
const fn = () => {};
const component = renderer.create(<Image onResponderGrant={fn} />);
expect(component.toJSON()).toMatchSnapshot();
});
});