fix exception in insight mocha browser tests

The Insight tests were actually broken and not running due to trying to access
the nonexistent process variable. The proper way to check for this is to see if
its type is undefined before trying to access it.
This commit is contained in:
Ryan X. Charles 2014-06-25 10:03:58 -07:00
parent 7e3477d03f
commit 537755e888
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ describe('Insight model', function() {
});
// Tests for Node
if (process.version) {
if (typeof process !== 'undefined' && process.version) {
it('should return array of unspent output', function(done) {
var i = new Insight();