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

Commit 95f0bf9

Browse files
johnpapaIgorMinar
authored andcommittedJan 28, 2014
fix(mocks): refactor currentSpec to work w/ Jasmine 2
Closes #5662
1 parent 8a0be35 commit 95f0bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ngMock/angular-mocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ if(window.jasmine || window.mocha) {
19471947

19481948
var currentSpec = null,
19491949
isSpecRunning = function() {
1950-
return currentSpec && (window.mocha || currentSpec.queue.running);
1950+
return !!currentSpec;
19511951
};
19521952

19531953

0 commit comments

Comments
 (0)
This repository has been archived.