Skip to content

Commit

Permalink
Merge 7821671 into f1f5a28
Browse files Browse the repository at this point in the history
  • Loading branch information
hhsnopek committed Aug 10, 2016
2 parents f1f5a28 + 7821671 commit 4c1027a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
node_modules
.DS_Store
.env
.nyc_output
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -2,3 +2,5 @@ language: node_js
sudo: false
node_js:
- 6
after_script:
- npm run coveralls
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# rooftop

[![npm](http://img.shields.io/npm/v/rooftop-client.svg?style=flat)](https://badge.fury.io/js/rooftop-client) [![tests](http://img.shields.io/travis/carrot/rooftop-node/master.svg?style=flat)](https://travis-ci.org/carrot/rooftop-node) [![dependencies](https://img.shields.io/david/carrot/rooftop-node.svg?style=flat)](https://david-dm.org/carrot/rooftop-node)
[![npm](http://img.shields.io/npm/v/rooftop-client.svg?style=flat)](https://badge.fury.io/js/rooftop-client) [![tests](http://img.shields.io/travis/carrot/rooftop-node/master.svg?style=flat)](https://travis-ci.org/carrot/rooftop-node) [![dependencies](https://img.shields.io/david/carrot/rooftop-node.svg?style=flat)](https://david-dm.org/carrot/rooftop-node) [![Coverage Status](https://coveralls.io/repos/github/carrot/rooftop-node/badge.svg)](https://coveralls.io/github/carrot/rooftop-node)

node api client for [Rooftop CMS](https://www.rooftopcms.com/)

Expand Down
11 changes: 9 additions & 2 deletions package.json
Expand Up @@ -12,7 +12,9 @@
},
"devDependencies": {
"ava": "^0.16.0",
"coveralls": "^2.11.12",
"dotenv": "^2.0.0",
"nyc": "^7.1.0",
"standard": "7.x"
},
"engines": {
Expand All @@ -21,6 +23,11 @@
"license": "MIT",
"main": "lib",
"scripts": {
"test": "ava"
}
"test": "ava",
"coverage": "nyc ava",
"coveralls": "nyc --reporter=lcov ava && cat ./coverage/lcov.info | coveralls"
},
"keywords": [
"rooftopcms"
]
}
4 changes: 2 additions & 2 deletions test/index.js
Expand Up @@ -51,8 +51,8 @@ test('gets data when valid data is provided', (t) => {

test('params passed to get() work correctly', (t) => {
return api.posts.get({ search: 'regular' }).then((res) => {
t.truthy(res.length === 6)
t.is(res[0].slug, 'amazing')
t.truthy(res.length === 2)
t.is(res[0].slug, 'testing-123')
})
})

Expand Down

0 comments on commit 4c1027a

Please sign in to comment.