app.test.js
393 Bytes
// Run $ expresso
/**
* Module dependencies.
*/
var app = require('../app');
module.exports = {
'GET /': function(assert){
assert.response(app,
{ url: '/' },
{ status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},
function(res){
assert.includes(res.body, '<title>Express</title>');
});
}
};