Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 4 additions & 4 deletions haiku-src/haiku-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand All @@ -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/)
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion haiku-src/haikus.json
Original file line number Diff line number Diff line change
@@ -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"
},
{
Expand Down
4 changes: 2 additions & 2 deletions haiku-src/process.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name" : "worker",
"name" : "worker2",
"script" : "./index.js",
"instances" : 1,
"merge_logs" : true,
Expand All @@ -8,6 +8,6 @@
"watch_options": {
"followSymlinks": true,
"usePolling" : true,
"interval" : 5
"interval" : 10
}
}