mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-31 09:44:21 +00:00
Fix lint error
This commit is contained in:
@@ -5,5 +5,4 @@ before_script:
|
|||||||
- export DISPLAY=:99.0
|
- export DISPLAY=:99.0
|
||||||
- sh -e /etc/init.d/xvfb start
|
- sh -e /etc/init.d/xvfb start
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
|
||||||
- npm test
|
- npm test
|
||||||
|
|||||||
+1
-1
@@ -57,7 +57,7 @@ To continuously watch and run tests, run the following:
|
|||||||
npm run test:watch
|
npm run test:watch
|
||||||
```
|
```
|
||||||
|
|
||||||
To perform linting, run the following:
|
To perform only linting, run the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|||||||
+3
-2
@@ -16,8 +16,9 @@
|
|||||||
"examples": "start-storybook -p 9001 -c ./examples/.storybook --dont-track",
|
"examples": "start-storybook -p 9001 -c ./examples/.storybook --dont-track",
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
"prepublish": "npm run build && npm run build:umd",
|
"prepublish": "npm run build && npm run build:umd",
|
||||||
"test": "jest",
|
"test": "npm run lint && npm run test:jest",
|
||||||
"test:watch": "npm run test -- --watch"
|
"test:jest": "jest",
|
||||||
|
"test:watch": "npm run test:jest -- --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"animated": "^0.1.3",
|
"animated": "^0.1.3",
|
||||||
|
|||||||
@@ -93,7 +93,8 @@ describe('components/Image', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('passes other props through to underlying View', () => {
|
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();
|
expect(component.toJSON()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user