Make sure server tests don't run when production variables are in the environment

This commit is contained in:
Scott Erickson 2015-10-29 12:05:56 -07:00
parent 93c51baea0
commit 6a28de7c05

View file

@ -2,6 +2,8 @@
# and common libraries are available
console.log 'IT BEGINS'
if process.env.COCO_MONGO_HOST
throw Error('Tests may not run with production environment')
require 'jasmine-spec-reporter'
jasmine.getEnv().defaultTimeoutInterval = 300000