ejs.js
This file
Path
test/acceptance/ejs.js
17 lines · 505 bytes · JavaScript
Last changed by
Merge tag '3.9.0'Douglas Christopher Wilsonbefore adoptiondb4448d
History of this fileTake it
The walk stopped after 200 commits: lines older than 34c83d7 point at it.
3.4.7Jonathan Ongbefore adoption34c83d7
line 1why, one step back1remove unnecessary test/support/httpJonathan Ongbefore adoption643397e
line 2why, one step back2var request = require('supertest')3.4.7Jonathan Ongbefore adoption34c83d7
lines 3–9why, one step back3 , app = require('../../examples/ejs');45describe('ejs', function(){6 describe('GET /', function(){7 it('should respond with html', function(done){8 request(app)9 .get('/')Merge tag '3.9.0'Douglas Christopher Wilsonbefore adoptiondb4448d
lines 10–14why, one step back10 .expect('Content-Type', 'text/html; charset=utf-8')11 .expect(/<li>tobi <tobi@learnboost\.com><\/li>/)12 .expect(/<li>loki <loki@learnboost\.com><\/li>/)13 .expect(/<li>jane <jane@learnboost\.com><\/li>/)14 .expect(200, done)3.4.7Jonathan Ongbefore adoption34c83d7
lines 15–17why, one step back15 })16 })17})