Skip to content
Myr

Updated express command

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- Fixed a genereated test's bug - Added a forgotten semicolon

authored by Masahiro Hayashi · committed by Tj Holowaychuk · parent ce47f96 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:bin/express+2 added-2 removed
165 unmodified lines
166 , "module.exports = {"167 , " 'GET /': function(){"168 , " assert.response(app,"169 , " { url: '/' },"170 , " { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},"170 , " { status: 200, headers: { 'Content-Type': 'text/html' }},"171 , " function(res){"172 , " assert.includes(res.body, '<title>Express</title>');"173 , " });"174 , " }"
44 unmodified lines
219 , '// Only listen on $ node app.js'220 , ''221 , 'if (!module.parent) {'222 , ' app.listen(3000);'223 , ' console.log("Express server listening on port %d", app.address().port)'223 , ' console.log("Express server listening on port %d", app.address().port);'224 , '}'225 , ''226].join('\n');227
223 unmodified lines