Skip to content
Myr

express(1) app using 2 spaces instead of 4

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 8d91a3e · Browse files · 1 file+23 added−23 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+23 added−23 removed

  • other:+23 added−23 removed

1 file+23 added−23 removed

modified:bin/express+23 added-23 removed
77 unmodified lines
78 "",79 "var app = require('../app');",80 "",81 "module.exports = {",82 " 'GET /': function(assert){",83 " assert.response(app,",84 " { url: '/' },",85 " { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},",86 " function(res){",87 " assert.includes(res.body, '<title>Express</title>');",88 " });",89 " }",82 " 'GET /': function(assert){",83 " assert.response(app,",84 " { url: '/' },",85 " { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},",86 " function(res){",87 " assert.includes(res.body, '<title>Express</title>');",88 " });",89 " }",90 "};",91].join('\n');9293/**
12 unmodified lines
106 '',107 '// Configuration',108 '',109 'app.configure(function(){',110 ' app.set(\'views\', __dirname + \'/views\');',111 ' app.use(express.bodyDecoder());',112 ' app.use(express.methodOverride());',113 ' app.use(express.compiler({ src: __dirname + \'/public\', enable: [\'less\'] }));',114 ' app.use(app.router);',115 ' app.use(express.staticProvider(__dirname + \'/public\'));',110 ' app.set(\'views\', __dirname + \'/views\');',111 ' app.use(express.bodyDecoder());',112 ' app.use(express.methodOverride());',113 ' app.use(express.compiler({ src: __dirname + \'/public\', enable: [\'less\'] }));',114 ' app.use(app.router);',115 ' app.use(express.staticProvider(__dirname + \'/public\'));',116 '});',117 '',118 'app.configure(\'development\', function(){',119 ' app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); ',119 ' app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); ',120 '});',121 '',122 'app.configure(\'production\', function(){',123 ' app.use(express.errorHandler()); ',123 ' app.use(express.errorHandler()); ',124 '});',125 '',126 '// Routes',127 '',128 'app.get(\'/\', function(req, res){',129 ' res.render(\'index.jade\', {',130 ' locals: {',131 ' title: \'Express\'',132 ' }',133 ' });',129 ' res.render(\'index.jade\', {',130 ' locals: {',131 ' title: \'Express\'',132 ' }',133 ' });',134 '});',135 '',136 '// Only listen on $ node app.js',137 '',138 'if (!module.parent) {',139 ' app.listen(3000);',140 ' console.log("Express server listening on port %d", app.address().port)',139 ' app.listen(3000);',140 ' console.log("Express server listening on port %d", app.address().port)',141 '}',142 ''143].join('\n');144
146 unmodified lines