mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-31 05:20:27 +00:00
fix(ngMock): fix isSpecRunning to work for Mocha
When running inside Mocha, don't look in Jasmine's spec.queue.running. It's not there. This is documented as issue #1467; I think this issue was also responsible for #1589 and recent complaints in #1253. Closes #1467.
This commit is contained in:
parent
398691beb3
commit
6397860831
1 changed files with 1 additions and 1 deletions
2
src/ngMock/angular-mocks.js
vendored
2
src/ngMock/angular-mocks.js
vendored
|
|
@ -1677,7 +1677,7 @@ window.jstestdriver && (function(window) {
|
|||
});
|
||||
|
||||
function isSpecRunning() {
|
||||
return currentSpec && currentSpec.queue.running;
|
||||
return currentSpec && (window.mocha || currentSpec.queue.running);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue