Skip to content
Myr

hello-world.js

This file

Path

test/acceptance/hello-world.js

21 lines · 488 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 2027b87 point at it.

fix(deps): cookie@0.7.0Josh Bukerbefore adoption2027b87

lines 1–21why, one step back
1
2var app = require('../../examples/hello-world')3var request = require('supertest')45describe('hello-world', function () {6 describe('GET /', function () {7 it('should respond with hello world', function (done) {8 request(app)9 .get('/')10 .expect(200, 'Hello World', done)11 })12 })1314 describe('GET /missing', function () {15 it('should respond with 404', function (done) {16 request(app)17 .get('/missing')18 .expect(404, done)19 })20 })21})