Skip to content

Commit

Permalink
Projet minor update
Browse files Browse the repository at this point in the history
- Add Travis CI support
- Remove bluebird dependency
  • Loading branch information
Jean-Christophe Vermandé committed Dec 7, 2017
1 parent cdd2b46 commit 739dce7
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
cache/data.json
cache/data.json
settings.json
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "stable"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

##### 0.2.2
- Add Travis CI support
- Remove bluebird dependency

##### 0.2.1
- Minor updates

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Platform-specific install note available from [`INSTALL.md`](https://github.com/
Example usage
-------------

Edit config.json and update neeo, settings and controllers sections
Edit settings.json and update neeo, settings and controllers sections

### NEEO:

Expand All @@ -47,7 +47,7 @@ __You can add as many controller you want here.__
- login is the login used to log in the home center
- password is the password used to log in the home center

Example "config.json"
Example "settings.json"

```json
{
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neeo-fibaro-scenes-adapter",
"version": "0.2.1",
"version": "0.2.2",
"description": "Controlling scenes from Fibaro Home Center Controller via NEEO remote",
"keywords": [
"fibaro",
Expand All @@ -20,18 +20,19 @@
],
"private": false,
"dependencies": {
"bluebird": "^3.5.1",
"neeo-sdk": "*",
"ip": "1.1.5"
},
"devDependencies": {
"jshint": "^2.9.4"
"jshint": "^2.9.4",
"mocha": "^3.5.0"
},
"engines": {
"node": ">=8.0.0"
},
"main": "lib/main.js",
"scripts": {
"test": "mocha \"test/**/*.js\"",
"server:fibaro-scenes": "node lib/main.js"
}
}
29 changes: 29 additions & 0 deletions test/unit/lib/index-settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
var assert = require('assert');
var settings = require('../../../lib/settings')();

describe('settings', function() {

it('load settings', function () {
assert.notEqual(settings, null);
assert.equal(settings.hasOwnProperty('neeo'), true);
assert.equal(settings.hasOwnProperty('settings'), true);
assert.equal(settings.hasOwnProperty('controllers'), true);
});

});

describe('service', function() {

it('initialise', function () {

});

});

describe('service', function() {

it('initialise', function () {

});

});
3 changes: 0 additions & 3 deletions test/unit/lib/index_test.js

This file was deleted.

0 comments on commit 739dce7

Please sign in to comment.