Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Fix express app's test
// Run $ expresso
/**
* Module dependencies.
*/
var assert = require('assert'); // <-- assert を require する
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>');
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment