Комментарии:
What if we have to spy a whole service instead of a single method inside it? Should I put all the methods as arguments or is there any other way
ОтветитьMy fried thinx for video do you know how to mock imported function from another module . Maybe inject into testbed of something else . Function not in service not in component it just imported to the tested component
Ответитьnice videos, thanks
ОтветитьIf there is an empty constructor in service.ts then we can remove it because in sonarqube it’s showing critical issue
ОтветитьHi leela,
So the createSpyObj creates an instance of the service speficied? Or it does'nt?
excellent video, you should take advantage from Proxy object iin order to intercept operation in that object, like let proxy = new Proxy(target, handler), very powefull feature
ОтветитьReally awesome lectures, Thankyou very much for detailed explanation
ОтветитьHello Sir thank you for the explanations, i didn't understand how if we call the Loggerservice and the log method jasmine recognize that we are talking about the real Loggerservice cause if i change the string here jasmine.createSpyObj('AnystringService', ['log']); it will give the same result, thank you so much sir
ОтветитьThank You so much, Very clean explanation.
Ответить