diff --git a/README.md b/README.md index e521c11..8c0c506 100644 --- a/README.md +++ b/README.md @@ -457,21 +457,21 @@ Setup and install ``` git clone ssh+git@github.com:HeliosInteractive/reachjs.git cd reachjs &&\ -npm install && npm install grunt grunt-cli -g +npm install ``` **Development and testing** ``` -grunt dev +npm run dev ``` The dev task will run watch and a connect static server on port 8000. Open `http://127.0.0.1:8000/test/html/test.html` to run the automated browser tests. -> copy test/config.dist.js to test/config.js and set your api key for testing +> copy test/config.example.js to test/config.js and set your api key for testing -Run `grunt mochaTest` to test the node components +Run `npm test` to test the node components --- diff --git a/test/config.example.js b/test/config.example.js new file mode 100644 index 0000000..6e15187 --- /dev/null +++ b/test/config.example.js @@ -0,0 +1,4 @@ +module.exports = function(reach) { + reach.setUrl(""); + reach.key = ""; +}; \ No newline at end of file diff --git a/test/post.js b/test/post.js index 5284d35..8c1c798 100644 --- a/test/post.js +++ b/test/post.js @@ -12,8 +12,6 @@ try{ } var activation = "1e637007-f4bc-4ad2-bc0c-386550df6662"; -reach.setUrl("http://reachstaging.herokuapp.com/api/"); -reach.key = "helios_test"; describe('Reach POST', function() { diff --git a/test/put.js b/test/put.js index 0fe7bba..e2158bf 100644 --- a/test/put.js +++ b/test/put.js @@ -11,9 +11,6 @@ try{ require('./config.js')(reach); } -reach.setUrl("http://reachstaging.herokuapp.com/api/"); -reach.key = "helios_test"; - describe('Reach PUT', function() { it("Should update a guest", function(done){