mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|
import {
|
|
ComponentFixture,
|
|
TestBed,
|
|
waitForAsync,
|
|
} from '@angular/core/testing';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
import { ThemedConfigurationSearchPageComponent } from '../../search-page/themed-configuration-search-page.component';
|
|
import { ActivatedRouteStub } from '../../shared/testing/active-router.stub';
|
|
import { AdminSearchPageComponent } from './admin-search-page.component';
|
|
|
|
describe('AdminSearchPageComponent', () => {
|
|
let component: AdminSearchPageComponent;
|
|
let fixture: ComponentFixture<AdminSearchPageComponent>;
|
|
|
|
beforeEach(waitForAsync(async () => {
|
|
await TestBed.configureTestingModule({
|
|
imports: [AdminSearchPageComponent],
|
|
providers: [
|
|
{ provide: ActivatedRoute, useValue: new ActivatedRouteStub() },
|
|
],
|
|
schemas: [NO_ERRORS_SCHEMA],
|
|
}).overrideComponent(AdminSearchPageComponent, {
|
|
remove: {
|
|
imports: [ThemedConfigurationSearchPageComponent],
|
|
},
|
|
})
|
|
.compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(AdminSearchPageComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|