Skip to content

Commit

Permalink
Merge branch 'BO-886' of github.com:barracksiot/barracks-cli into BO-886
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregoire Weber committed Feb 17, 2017
2 parents e78eff9 + 5a7736f commit 0734a38
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions clients/Barracks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ describe('Barracks', () => {
const options = {
headers: { 'x-auth-token': token }
};

barracks.client.retrieveAllPages = sinon.spy();

// When / Then
Expand Down
4 changes: 4 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ module.exports = {
method: 'GET',
path: '/api/member/devices?size=20&query=:query'
},
getDevices: {
method: 'GET',
path: '/api/member/devices?size=20'
},
editUpdate: {
method: 'PUT',
path: '/api/member/updates/:uuid'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "barracks-cli",
"version": "0.0.2",
"version": "1.0.0",
"description": "A CLI tool for Barracks",
"main": "index.js",
"scripts": {
"start": "./bin/barracks.js",
"lint": "jshint **/**.js",
"test": "npm run lint && npm run coverage && npm run check-coverage",
"coverage": "DEBUG=true istanbul cover ./node_modules/mocha/bin/_mocha **/*.spec.js -- -R spec",
"check-coverage": "istanbul check-coverage --statement 90 --branch 70 --function 90",
"check-coverage": "istanbul check-coverage --statement 90 --branch 75 --function 90",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
},
"bin": {
Expand Down

0 comments on commit 0734a38

Please sign in to comment.