I think `karma.config.mocha[key].concat === 'function'` is typo and it had to be `typeof karma.config.mocha[key].concat`.

I simple remove this checking because `concat` join Array and we can pass `globals: 'test'`.
If this behavior is not correct I can improve verification on `typeof karma.config.mocha[key].concat`.