ejs.js
This file
Path
test/acceptance/ejs.js
20 lines · 648 bytes · JavaScript
Last changed by
Merge branch 'examples'TJ Holowaychukbefore adoptionc492cde
History of this fileTake it
1234567891011121314151617181920
var request = require('../support/http') , app = require('../../examples/ejs');
describe('ejs', function(){ describe('GET /', function(){ it('should respond with html', function(done){ request(app) .get('/') .end(function(err, res){ res.should.have.status(200); res.should.have.header('Content-Type', 'text/html; charset=utf-8'); res.text.should.include('<li>tobi <tobi@learnboost.com></li>'); res.text.should.include('<li>loki <loki@learnboost.com></li>'); res.text.should.include('<li>jane <jane@learnboost.com></li>'); done(); }); }) })})