Issue with jasmine expectations not being tested/evaluated because of simulated mock error
问题 I am trying to unit test a angular 2 component and simulate an error (400/bad request) from the http backend. Here is my code: describe('Component: UserAccountActivationComponent', () => { let fixture: ComponentFixture<UserAccountActivationComponent>; let userAccountActivationComponent: UserAccountActivationComponent; const observableMock = Observable.of('Some Observable'); beforeEach(async(() => { TestBed.configureTestingModule({ providers: [ MockBackend, BaseRequestOptions, { provide: Http,