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

Commit baaa73e

Browse files
Adam de Baughvojtajina
Adam de Baugh
authored andcommitted
fix(ngMocks): $logProvider should not use internal APIs
angular.mocks.$LogProvider $logProvider.debugEnabled(false) is crashing with undefined when run inside karma/jasmine test runner: angular.module('foo', []).config(['$logProvider', function ($logProvider) { $logProvider.debugEnabled(false); }]); Closes #3612
1 parent c65fcc0 commit baaa73e

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
@@ -316,7 +316,7 @@ angular.mock.$LogProvider = function() {
316316
}
317317

318318
this.debugEnabled = function(flag) {
319-
if (isDefined(flag)) {
319+
if (angular.isDefined(flag)) {
320320
debug = flag;
321321
return this;
322322
} else {

0 commit comments

Comments
 (0)