ajs2
ajs2
yep, so you removed jquery from the karma configuration. But shouldn't angular work with jquery as well ? # Subject: Re: [angular.js] issue with unit-testing directive using karma (#4640) Your...
sorry for the late response, but you made my day!! :+1:
found an other issue. When the directive has an isolated scope, the properties set on the scope are not accessible in the unit test, so a test like ``` expect(element.scope().foo).toEqual('bar');...
thanks a lot!!
No its definitely different (thats why I created this issue)! That issue you mention is about not having a scope at all, so a test like ``` expect(element.scope()).toBeDefined(); ``` would...