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

Commit 5afe049

Browse files
author
Adam de Baugh
committed
fix(ngMocks): $logProvider#debugEnabled should work the same within tests
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 c7b0d84 commit 5afe049

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)