Only running karma unit tests once in ci mode, fixes #3121.
Merge pull request #3123 from waldenraines/fix-karma

Only running karma unit tests once in ci mode, fixes #3121.