diff --git a/README.md b/README.md index 427a73f..cf4b0a0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Changes are coming -I am updating as well as cleaning up some of the workflows in this repo, and adding new demos as well. As such, it is going to be a little chaotic around here right now. For example, I am going to create a BACKUP folder, and I'm gonna move old files there, just to make it easy for people to find them. +I am updating as well as cleaning up some of the workflows in this repo, and adding new demos as well. As such, it is going to be a little chaotic around here right now. For example, I am going to create a bkp fld, and I'm gonna move old files there, just to make it easy for people to find them. + +Added a second paragraph + +Added a third paragraph Please bear with me. ## Resetting the demo env: diff --git a/haiku-src/haiku-tests.js b/haiku-src/haiku-tests.js index 77d88d3..0679dbe 100644 --- a/haiku-src/haiku-tests.js +++ b/haiku-src/haiku-tests.js @@ -3,7 +3,7 @@ const app = require('./index'); const { expect } = require('chai'); describe('GET /', () => { - it('responds with 200 status and HTML content', (done) => { + it('responds with 200 status and HTML stuff', (done) => { request(app) .get('/') .expect('Content-Type', /html/) @@ -18,7 +18,7 @@ describe('GET /', () => { }); describe('GET /haikus', () => { - it('responds with JSON content and all haikus', (done) => { + it('responds with JSON content and all haiku information', (done) => { request(app) .get('/haikus') .expect('Content-Type', /json/) @@ -34,11 +34,11 @@ describe('GET /haikus', () => { }); describe('GET /nonexistent', () => { - it('responds with 404 status and error message', (done) => { + it('responds with 404 status and detailed error message', (done) => { request(app) .get('/nonexistent') .expect('Content-Type', /html/) - .expect(400) + .expect(404) .end((err, res) => { if (err) return done(err); expect(res.status).to.equal(404); diff --git a/haiku-src/haikus.json b/haiku-src/haikus.json index 2e8f99d..8840015 100644 --- a/haiku-src/haikus.json +++ b/haiku-src/haikus.json @@ -1,6 +1,6 @@ [ { - "text": "rain in tupelo,\ndon't forget an umbrella,\nor it will be gloom", + "text": "rain in mississippi,\ndon't forget an umbrella,\nor it will be gloom", "image": "puddle_jumper_octodex.jpg" }, { diff --git a/haiku-src/process.json b/haiku-src/process.json index fafd490..86cfa33 100644 --- a/haiku-src/process.json +++ b/haiku-src/process.json @@ -1,5 +1,5 @@ { - "name" : "worker", + "name" : "worker2", "script" : "./index.js", "instances" : 1, "merge_logs" : true, @@ -8,6 +8,6 @@ "watch_options": { "followSymlinks": true, "usePolling" : true, - "interval" : 5 + "interval" : 10 } }