/
githubmirror
/
express
Обзор
Документация
Войти
/
githubmirror
/
express
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/acceptance/hello-world.js
20 строк
488 B
Douglas Christopher Wilson
tests: add test for hello-world example
02 фев 2022, 09:23
02 фев 2022, 09:23
a84e73b
Код
Авторство
О чём код?
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) }) }) })