Permalink
Browse files

Make sure tests work in absence of NODE_ENV.

  • Loading branch information...
1 parent 1f80143 commit 5d18280f9882a6b1e2fd12282ab9455d0039a37f @rauchg rauchg committed Jan 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/distribute.js
View
@@ -226,7 +226,9 @@ describe('distribute', function () {
.set('Host', 'b.localhost')
.end(function (res) {
expect(res.status).to.be(500);
- expect(res.text).to.contain('Test');
+ if ('development' == process.env.NODE_ENV) {
+ expect(res.text).to.contain('Test');
+ }
--total || finish();
});
}

0 comments on commit 5d18280

Please sign in to comment.