Skip to content
Myr

examples: improve 404 message wording

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #4471

authored by Aalaap Ghag · committed by Douglas Christopher Wilson · parent a24f27a · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • tests:+3 added−3 removed
  • other:+1 added−1 removed

2 files+4 added−4 removed

modified:examples/web-service/index.js+1 added-1 removed
modified:test/acceptance/web-service.js+3 added-3 removed
95 unmodified lines
9697 describe('when requesting an invalid route', function(){98 it('should respond with 404 json', function(done){99 request(app)100 .get('/api/something?api-key=bar')101 .expect('Content-Type', /json/)102 .expect(404, '{"error":"Lame, can\'t find that"}', done)100 .get('/api/something?api-key=bar')101 .expect('Content-Type', /json/)102 .expect(404, '{"error":"Sorry, can\'t find that"}', done)103 })104 })105})