Fix problem with Jasmine and afterEach