From 66e37c24aa7b525b83711f3ae788c16c88ec5e28 Mon Sep 17 00:00:00 2001 From: Mickey Gousset Date: Tue, 16 Apr 2024 17:41:54 +0000 Subject: [PATCH 1/6] mississippi eit --- haiku-src/haikus.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }, { From 2708d111a70119912ecf369d78a4f310ba31117b Mon Sep 17 00:00:00 2001 From: Mickey Gousset Date: Tue, 16 Apr 2024 19:22:28 +0000 Subject: [PATCH 2/6] fixed the test I am awesome --- haiku-src/haiku-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haiku-src/haiku-tests.js b/haiku-src/haiku-tests.js index 77d88d3..cea9903 100644 --- a/haiku-src/haiku-tests.js +++ b/haiku-src/haiku-tests.js @@ -38,7 +38,7 @@ describe('GET /nonexistent', () => { 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); From df45734f13c4b9ae7d7cf1b721d9a88cd519fcb3 Mon Sep 17 00:00:00 2001 From: Mickey Gousset Date: Fri, 21 Jun 2024 09:21:34 -0500 Subject: [PATCH 3/6] Modified first paragraph of README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 427a73f..f9c578a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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. Please bear with me. ## Resetting the demo env: From 889812ca8da2484dd82a7168cc3624a4fd504633 Mon Sep 17 00:00:00 2001 From: Mickey Gousset Date: Fri, 21 Jun 2024 09:22:05 -0500 Subject: [PATCH 4/6] Added second/third paragraph to README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f9c578a..cf4b0a0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ 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: From 58b7ed38e8cd51020a41f2b77ab5b2889be0f6c4 Mon Sep 17 00:00:00 2001 From: Mickey Gousset Date: Fri, 21 Jun 2024 09:23:05 -0500 Subject: [PATCH 5/6] Update haiku-tests.js --- haiku-src/haiku-tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haiku-src/haiku-tests.js b/haiku-src/haiku-tests.js index cea9903..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,7 +34,7 @@ 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/) From 7a1798ce8f6c5d2e3efdf3bc7477dc6d79331330 Mon Sep 17 00:00:00 2001 From: Mickey Gousset Date: Fri, 21 Jun 2024 09:23:43 -0500 Subject: [PATCH 6/6] Update process.json --- haiku-src/process.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }