Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1355 from lihanli/view-cache-test

set the NODE_ENV to development for the development view cache test
  • Loading branch information...
commit 3cd01598a5f940310453bcf825f07380243c5f06 2 parents eeef763 + 3b6d683
TJ Holowaychuk tj authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  test/app.js
2  test/app.js
View
@@ -57,8 +57,10 @@ describe('app.path()', function(){
describe('in development', function(){
it('should disable "view cache"', function(){
+ process.env.NODE_ENV = 'development';
var app = express();
app.enabled('view cache').should.be.false;
+ process.env.NODE_ENV = 'test';
})
})
Please sign in to comment.
Something went wrong with that request. Please try again.