Skip to content

Commit

Permalink
Adds coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Aug 20, 2015
1 parent 9066908 commit 1aa3fef
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
Expand Up @@ -18,6 +18,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
- "iojs"
after_success:
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/zrrrzzt/ssb.svg?branch=master)](https://travis-ci.org/zrrrzzt/ssb)
[![Coverage Status](https://coveralls.io/repos/zrrrzzt/ssb/badge.svg?branch=master&service=github)](https://coveralls.io/github/zrrrzzt/ssb?branch=master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
# ssb

Expand Down
3 changes: 2 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ssb(opts, function (err, data) {
if (err) {
console.error(err)
} else {
console.log(data)
var result = opts.format === 'json' ? JSON.stringify(data) : data
console.log(result)
}
})

0 comments on commit 1aa3fef

Please sign in to comment.