diff --git a/.gitignore b/.gitignore index 42006d6..b4d80fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -cache/data.json \ No newline at end of file +cache/data.json +settings.json \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6998e32 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "stable" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3372778..15ece61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +##### 0.2.2 +- Add Travis CI support +- Remove bluebird dependency + ##### 0.2.1 - Minor updates diff --git a/README.md b/README.md index bd5ab58..80fa193 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 { diff --git a/package.json b/package.json index 3d5cb4b..ea2f380 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/test/unit/lib/index-settings.js b/test/unit/lib/index-settings.js new file mode 100644 index 0000000..2ba4c5f --- /dev/null +++ b/test/unit/lib/index-settings.js @@ -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 () { + + }); + +}); \ No newline at end of file diff --git a/test/unit/lib/index_test.js b/test/unit/lib/index_test.js deleted file mode 100644 index 803f7ac..0000000 --- a/test/unit/lib/index_test.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -const fibaroScenes = require('../../../lib/main'); \ No newline at end of file