ejs.js
This file
Path
test/acceptance/ejs.js
17 lines · 505 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
123456789101112131415161718
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) }) })})