Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure tests work in absence of NODE_ENV.

  • Loading branch information...
commit 5d18280f9882a6b1e2fd12282ab9455d0039a37f 1 parent 1f80143
@rauchg rauchg authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/distribute.js
View
4 test/distribute.js
@@ -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();
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.