Skip to content

Commit b44752d

Browse files
authored
Codecov (#177)
1 parent 5c4c882 commit b44752d

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# rc-checkbox
22
---
33

4-
React Checkbox.
4+
React Checkbox component.
55

66
[![NPM version][npm-image]][npm-url]
7+
[![npm download][download-image]][download-url]
78
[![build status][travis-image]][travis-url]
8-
[![Test coverage][coveralls-image]][coveralls-url]
9+
[![Test coverage][codecov-image]][codecov-url]
910
[![Dependencies](https://img.shields.io/david/react-component/checkbox.svg?style=flat-square)](https://david-dm.org/react-component/checkbox)
1011
[![DevDependencies](https://img.shields.io/david/dev/react-component/checkbox.svg?style=flat-square)](https://david-dm.org/react-component/checkbox?type=dev)
11-
[![npm download][download-image]][download-url]
1212

1313
[npm-image]: http://img.shields.io/npm/v/rc-checkbox.svg?style=flat-square
1414
[npm-url]: http://npmjs.org/package/rc-checkbox
1515
[travis-image]: https://img.shields.io/travis/react-component/checkbox.svg?style=flat-square
1616
[travis-url]: https://travis-ci.org/react-component/checkbox
17-
[coveralls-image]: https://img.shields.io/coveralls/react-component/checkbox.svg?style=flat-square
18-
[coveralls-url]: https://coveralls.io/r/react-component/checkbox?branch=master
17+
[codecov-image]: https://img.shields.io/codecov/react-component/checkbox.svg?style=flat-square
18+
[codecov-url]: https://codecov.io/gh/react-component/checkbox
1919
[download-image]: https://img.shields.io/npm/dm/rc-checkbox.svg?style=flat-square
2020
[download-url]: https://npmjs.org/package/rc-checkbox
2121

@@ -91,7 +91,7 @@ npm install
9191
npm start
9292
```
9393

94-
## Example
94+
## Examples
9595

9696
http://localhost:8001/examples/
9797

@@ -101,18 +101,15 @@ online example: http://react-component.github.io/checkbox/examples/simple.html
101101

102102
```
103103
npm test
104-
npm run chrome-test
105104
```
106105

107106
## Coverage
108107

109108
```
110109
npm run coverage
110+
open coverage
111111
```
112112

113-
open coverage/ dir
114-
115-
116113
## License
117114

118115
rc-checkbox is released under the MIT license.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"pub": "rc-tools run pub --babel-runtime",
3838
"lint": "rc-tools run lint",
3939
"test": "jest",
40-
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls",
40+
"coverage": "jest --coverage && curl -s https://codecov.io/bash",
4141
"prepublish": "rc-tools run guard"
4242
},
4343
"jest": {
@@ -58,10 +58,9 @@
5858
},
5959
"devDependencies": {
6060
"core-js": "^2.5.1",
61-
"coveralls": "^3.0.0",
6261
"enzyme": "^3.1.0",
6362
"enzyme-adapter-react-16": "^1.0.1",
64-
"jest": "^21.2.1",
63+
"jest": "^23.0.0",
6564
"pre-commit": "1.x",
6665
"rc-tools": "^7.0.3",
6766
"react": "^16.0.0",

tests/index.spec.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'core-js/es6/map';
2-
import 'core-js/es6/set';
31
import React from 'react';
42
import { mount } from 'enzyme';
53
import Checkbox from '../';

0 commit comments

Comments
 (0)