Skip to content

Commit

Permalink
Close #4 PR: adds test coverage to wrap-ansi.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and sindresorhus committed Oct 7, 2015
1 parent b0a246f commit b6e9ddf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.nyc_output
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_js:
- 'iojs'
- '0.12'
- '0.10'
after_success: npm run coverage
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"node": ">=0.10.0"
},
"scripts": {
"test": "xo && node test.js"
"test": "xo && nyc node test.js",
"coverage": "nyc --reporter=text-lcov node test.js | coveralls"
},
"files": [
"index.js"
Expand Down Expand Up @@ -56,6 +57,8 @@
"devDependencies": {
"ava": "0.0.4",
"chalk": "^1.1.0",
"coveralls": "^2.11.4",
"nyc": "^3.2.2",
"strip-ansi": "^3.0.0",
"xo": "*"
}
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wrap-ansi [![Build Status](https://travis-ci.org/chalk/wrap-ansi.svg?branch=master)](https://travis-ci.org/chalk/wrap-ansi)
# wrap-ansi [![Build Status](https://travis-ci.org/chalk/wrap-ansi.svg?branch=master)](https://travis-ci.org/chalk/wrap-ansi) [![Coverage Status](https://coveralls.io/repos/chalk/wrap-ansi/badge.svg?branch=master&service=github)](https://coveralls.io/github/chalk/wrap-ansi?branch=master)

> Wordwrap a string with [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
Expand Down

0 comments on commit b6e9ddf

Please sign in to comment.