import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { FooterComponent } from './footer.component'; describe('FooterComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ RouterTestingModule ], declarations: [ FooterComponent ], }).compileComponents(); }); it('should create the app', () => { const fixture = TestBed.createComponent(FooterComponent); const comp = fixture.componentInstance; expect(comp).toBeTruthy(); }); it(`should have as title 'footer'`, () => { const fixture = TestBed.createComponent(FooterComponent); const comp = fixture.componentInstance; expect(comp.title).toEqual('footer'); }); });