-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathfooter.component.spec.ts
More file actions
29 lines (22 loc) · 989 Bytes
/
footer.component.spec.ts
File metadata and controls
29 lines (22 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
import { MockComponent, MockPipe, MockProvider } from 'ng-mocks';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';
import { IconComponent } from '@osf/shared/components/icon/icon.component';
import { FooterComponent } from './footer.component';
describe('FooterComponent', () => {
let component: FooterComponent;
let fixture: ComponentFixture<FooterComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [FooterComponent, MockComponent(IconComponent), MockPipe(TranslatePipe)],
providers: [MockProvider(TranslateService), MockProvider(ActivatedRoute)],
}).compileComponents();
fixture = TestBed.createComponent(FooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});