hello-world.js
This file
Path
test/acceptance/hello-world.js
21 lines · 488 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
12345678910111213141516171819202122
var app = require('../../examples/hello-world')var request = require('supertest')
describe('hello-world', function () { describe('GET /', function () { it('should respond with hello world', function (done) { request(app) .get('/') .expect(200, 'Hello World', done) }) })
describe('GET /missing', function () { it('should respond with 404', function (done) { request(app) .get('/missing') .expect(404, done) }) })})