frontend_v2/src/app/components/nav/footer/footer.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FooterComponent } from './footer.component';
import { RouterTestingModule } from '@angular/router/testing';
import { GlobalService } from '../../../services/global.service';
import { ApiService } from '../../../services/api.service';
import { HttpClientModule } from '@angular/common/http';
import { ActivatedRoute, Router } from '@angular/router';
describe('FooterComponent', () => {
let component: FooterComponent;
let fixture: ComponentFixture<FooterComponent>;
const fakeActivatedRoute = {
snapshot: { data: {} },
} as ActivatedRoute;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [FooterComponent],
imports: [RouterTestingModule, HttpClientModule],
providers: [GlobalService, ApiService],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(FooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});