mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { ComcolSearchSectionComponent } from './comcol-search-section.component';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
import { ActivatedRouteStub } from '../../../testing/active-router.stub';
|
|
import { APP_CONFIG } from '../../../../../config/app-config.interface';
|
|
import { environment } from '../../../../../environments/environment.test';
|
|
|
|
describe('ComcolSearchSectionComponent', () => {
|
|
let component: ComcolSearchSectionComponent;
|
|
let fixture: ComponentFixture<ComcolSearchSectionComponent>;
|
|
|
|
let route: ActivatedRouteStub;
|
|
|
|
beforeEach(async () => {
|
|
route = new ActivatedRouteStub();
|
|
|
|
await TestBed.configureTestingModule({
|
|
imports: [ComcolSearchSectionComponent],
|
|
providers: [
|
|
{ provide: APP_CONFIG, useValue: environment },
|
|
{ provide: ActivatedRoute, useValue: route },
|
|
]
|
|
}).compileComponents();
|
|
|
|
fixture = TestBed.createComponent(ComcolSearchSectionComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|