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

The $logProvider mock doesn't implement $log.debug() and debugEnabled() in version 1.1.x #2343

Closed
kopa opened this issue Apr 9, 2013 · 2 comments

Comments

@kopa
Copy link

kopa commented Apr 9, 2013

If you use $log.debug() in code with angular.js version 1.1.4 the unit tests will fail as
the $logProvider mock in angular-mock.js (version 1.1.4) doesn't implement $log.debug() and debugEnabled().

@kopa
Copy link
Author

kopa commented May 27, 2013

issue is still relevant with version 1.1.5

@jpalumbo
Copy link

This really helped me, I was looking high and low to find out why my test were failing.

jpalumbo added a commit to jpalumbo/angular.js that referenced this issue Jun 11, 2013
Added $logProvider.debugEnabled method to $logProvider Mock.
Added $log.debug method to Mock.
jpalumbo added a commit to jpalumbo/angular.js that referenced this issue Jun 11, 2013
Added tests definitions for ngMock debugEnabled and debug methods
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants