Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Compat issue with jasmine 2.0.0 regarding currentSpec.queue.running #5632

@johnpapa

Description

@johnpapa

Angular Mocks checks if a spec is running by using

 // Line 1922
 isSpecRunning = function() {
     return currentSpec && (window.mocha || currentSpec.queue.running);
 };

 beforeEach(function() {
   currentSpec = this;
 });

However in Jasmine 2.0.0 currentSpec.queue doesn;t exist nor does any "running" property. How do we determine if a spec is running so we can propose a pull request for NG mocks?

See ... jasmine/jasmine#492

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions