Skip to content
Myr

dont change NODE_ENV in tests

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 57b035c · Browse files · 2 files+1 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

2 files+1 added−2 removed

  • tests:+1 added−2 removed

2 files+1 added−2 removed

modified:test/express.test.js+1 added-1 removed
230 unmodified lines
231 },232 233 'test #configure()': function(beforeExit){234 var calls = [];235 process.env.NODE_ENV = 'development';235 var server = express.createServer();236 server.set('env', 'development');237 238 // Config blocks239 var ret = server.configure(function(){240 assert.equal(this, server, 'Test context of configure() is the server');
292 unmodified lines
modified:test/view.test.js-1 removed
13 unmodified lines
14 * Create a test server with views set to ./fixtures.15 */1617var create = function(){18 process.env.NODE_ENV = 'test';18 var app = express.createServer.apply(express, arguments);19 app.set('views', __dirname + '/fixtures');20 return app;21};
866 unmodified lines