Skip to content

Commit

Permalink
fix(mocks): refactor currentSpec to work w/ Jasmine 2
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpapa authored and juliemr committed Jan 28, 2014
1 parent 9efa8ad commit 74c9a74
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 74c9a74

Please sign in to comment.