Tag : angular

let compoent = MockComponent; it(‘should be called the your Component’, () =>{ component.yourComponent() // first called your component spyOn(component, ‘method’).and.returnValue(‘expeted data’) }) spyon is observe the component angular New contributor Mahesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. First create ..

Read more

Read more