Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 2e68ddb point at it.

expose connect.middleware using Object.getOwnPropertyDescriptor()Jonathan Ongbefore adoption2e68ddb

line 1why, one step back
1

remove unnecessary test/support/httpJonathan Ongbefore adoption643397e

line 2why, one step back
2var request = require('supertest')

expose connect.middleware using Object.getOwnPropertyDescriptor()Jonathan Ongbefore adoption2e68ddb

lines 3–9why, one step back
3 , 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 back
10 .expect('Content-Type', 'text/html; charset=utf-8')
11 .expect(/<li>tobi &lt;tobi@learnboost\.com&gt;<\/li>/)12 .expect(/<li>loki &lt;loki@learnboost\.com&gt;<\/li>/)13 .expect(/<li>jane &lt;jane@learnboost\.com&gt;<\/li>/)14 .expect(200, done)

expose connect.middleware using Object.getOwnPropertyDescriptor()Jonathan Ongbefore adoption2e68ddb

lines 15–17why, one step back
15 })
16 })17})