/
githubmirror
/
express
Обзор
Документация
Войти
/
githubmirror
/
express
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/acceptance/ejs.js
16 строк
505 B
Douglas Christopher Wilson
deps: should@~4.0.0
30 май 2014, 06:53
30 май 2014, 06:53
1f2e00e
Код
Авторство
О чём код?
var request = require('supertest') , app = require('../../examples/ejs'); describe('ejs', function(){ describe('GET /', function(){ it('should respond with html', function(done){ request(app) .get('/') .expect('Content-Type', 'text/html; charset=utf-8') .expect(/<li>tobi <tobi@learnboost\.com><\/li>/) .expect(/<li>loki <loki@learnboost\.com><\/li>/) .expect(/<li>jane <jane@learnboost\.com><\/li>/) .expect(200, done) }) }) })