// import { async, ComponentFixture, TestBed } from '@angular/core/testing'; // import { FooterComponent } from './footer.component'; // describe('FooterComponent', () => { // let component: FooterComponent; // let fixture: ComponentFixture; // beforeEach(async(() => { // TestBed.configureTestingModule({ // declarations: [ FooterComponent ] // }) // .compileComponents(); // })); // beforeEach(() => { // fixture = TestBed.createComponent(FooterComponent); // component = fixture.componentInstance; // fixture.detectChanges(); // }); // it('should create', () => { // expect(component).toBeTruthy(); // }); // }); import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { FooterComponent } from './footer.component'; describe('FooterComponent', () => { let component: FooterComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ HttpClientModule, HttpClientTestingModule ], declarations: [ FooterComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(FooterComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });