Remove jasmine async hack once jasmine has been updated.
The following discussion from !12226 (merged) should be addressed:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12226#note_32563545
jasmine-core
currently has an issue where it hogs the main thread preventing karma from communicating over the socket. the current workaround is to inject async calls in between tests with the following global beforeEach
:
beforeEach(done => done());
the workaround was suggested in the following issue:
https://github.com/jasmine/jasmine/issues/1327
it is also used the same workaround currently used by the angular framework:
https://github.com/angular/angular/pull/17498
Once jasmine-core
is updated to address this problem, we can remove the hack.