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

Commit

Permalink
fix(mocks): refactor currentSpec to work w/ Jasmine 2
Browse files Browse the repository at this point in the history
Closes #5662
  • Loading branch information
johnpapa authored and IgorMinar committed Jan 28, 2014
1 parent 8a0be35 commit 95f0bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngMock/angular-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ if(window.jasmine || window.mocha) {

var currentSpec = null,
isSpecRunning = function() {
return currentSpec && (window.mocha || currentSpec.queue.running);
return !!currentSpec;
};


Expand Down

0 comments on commit 95f0bf9

Please sign in to comment.