Commits
Art Lowel authored 716cea376da
1 1 | import { Observable, of as observableOf } from 'rxjs'; |
2 2 | import { CommonModule } from '@angular/common'; |
3 3 | import { NO_ERRORS_SCHEMA } from '@angular/core'; |
4 4 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; |
5 5 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
6 6 | import { BrowserModule, By } from '@angular/platform-browser'; |
7 7 | import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; |
8 8 | import { TranslateLoader, TranslateModule } from '@ngx-translate/core'; |
9 9 | import { buildPaginatedList, PaginatedList } from '../../../core/data/paginated-list.model'; |
10 10 | import { RemoteData } from '../../../core/data/remote-data'; |
11 - | import { FindListOptions } from '../../../core/data/request.models'; |
12 11 | import { EPersonDataService } from '../../../core/eperson/eperson-data.service'; |
13 12 | import { EPerson } from '../../../core/eperson/models/eperson.model'; |
14 13 | import { PageInfo } from '../../../core/shared/page-info.model'; |
15 14 | import { FormBuilderService } from '../../../shared/form/builder/form-builder.service'; |
16 15 | import { NotificationsService } from '../../../shared/notifications/notifications.service'; |
17 16 | import { EPersonFormComponent } from './eperson-form.component'; |
18 17 | import { EPersonMock, EPersonMock2 } from '../../../shared/testing/eperson.mock'; |
19 18 | import { createSuccessfulRemoteDataObject$ } from '../../../shared/remote-data.utils'; |
20 19 | import { getMockFormBuilderService } from '../../../shared/mocks/form-builder-service.mock'; |
21 20 | import { NotificationsServiceStub } from '../../../shared/testing/notifications-service.stub'; |
22 21 | import { TranslateLoaderMock } from '../../../shared/mocks/translate-loader.mock'; |
23 22 | import { AuthService } from '../../../core/auth/auth.service'; |
24 23 | import { AuthServiceStub } from '../../../shared/testing/auth-service.stub'; |
25 24 | import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service'; |
26 25 | import { GroupDataService } from '../../../core/eperson/group-data.service'; |
27 26 | import { createPaginatedList } from '../../../shared/testing/utils.test'; |
28 27 | import { RequestService } from '../../../core/data/request.service'; |
29 28 | import { PaginationService } from '../../../core/pagination/pagination.service'; |
30 29 | import { PaginationServiceStub } from '../../../shared/testing/pagination-service.stub'; |
30 + | import { FindListOptions } from '../../../core/data/find-list-options.model'; |
31 31 | |
32 32 | describe('EPersonFormComponent', () => { |
33 33 | let component: EPersonFormComponent; |
34 34 | let fixture: ComponentFixture<EPersonFormComponent>; |
35 35 | let builderService: FormBuilderService; |
36 36 | |
37 37 | let mockEPeople; |
38 38 | let ePersonDataServiceStub: any; |
39 39 | let authService: AuthServiceStub; |
40 40 | let authorizationService: AuthorizationDataService; |