Relative Content

Tag Archive for angularunit-testingkarma-runner

Angular Karma/Jasmine Unit Test Cannot Read Properties Of Undefined Readin imageUrl

I have been tackling an error for a couple of days in my unit testing. Everything I have tried thus far from my research does not seem to resolve the issue. Three of my components are failing unit test with same error cannot read properties of undefined reading imageUrl which is a property of my models. The error is coming from my template. Some of the research I have done states that this property must be mentioned in the test bed, based on what I read this is not working for me. My components are not being created because of this error. I commented out some test until I get this error resolved. Can someone tell me what I am dong wrong or point me in the right direction. It would be greatly appreciated. Code snippet included.