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
commit 537755e888

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();