Skip to content
Myr

removed generation of dummy test file from express(1)

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 835982c · Browse files · 1 file+0 added−33 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+0 added−33 removed

  • other:+0 added−33 removed

1 file+0 added−33 removed

modified:bin/express-33 removed
148 unmodified lines
149 , ' color #00B7FF'150].join('\n');151152/**153 * App test template.154 */155156var appTest = [157 ""158 , "// Run $ expresso"159 , ""160 , "/**"161 , " * Module dependencies."162 , " */"163 , ""164 , "var app = require('../app')"165 , " , assert = require('assert');"166 , "",167 , "module.exports = {"168 , " 'GET /': function(){"169 , " assert.response(app,"170 , " { url: '/' },"171 , " { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},"172 , " function(res){"173 , " assert.includes(res.body, '<title>Express</title>');"174 , " });"175 , " }"176 , "};"177].join('\n');178179/**153 * App template.154 */155156var app = [
133 unmodified lines
290 write(path + '/views/index.jade', jadeIndex);291 break;292 }293 });321 mkdir(path + '/test', function(){322 write(path + '/test/app.test.js', appTest);323 });294295 // CSS Engine support296 switch (cssEngine) {297 case 'sass':
24 unmodified lines
322 json += ' "express": "' + version + '"\n';323 if (cssEngine) json += ' , "' + cssEngine + '": ">= 0.0.1"\n';324 if (templateEngine) json += ' , "' + templateEngine + '": ">= 0.0.1"\n';325 json += ' }\n';356 json += ' , "devDependencies": {\n'357 json += ' "expresso": "0.7.x"\n';358 json += ' }\n';326 json += '}';327328329 write(path + '/package.json', json);
90 unmodified lines