mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
CC License Submission Step - fix tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { DsSelectComponent } from './ds-select.component';
|
import { DsSelectComponent } from './ds-select.component';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('DsSelectComponent', () => {
|
describe('DsSelectComponent', () => {
|
||||||
let component: DsSelectComponent;
|
let component: DsSelectComponent;
|
||||||
@@ -8,7 +8,12 @@ describe('DsSelectComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [ DsSelectComponent ]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
DsSelectComponent,
|
||||||
|
],
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
@@ -26,6 +26,7 @@ import { PageInfo } from '../../../core/shared/page-info.model';
|
|||||||
import { Collection } from '../../../core/shared/collection.model';
|
import { Collection } from '../../../core/shared/collection.model';
|
||||||
import { createTestComponent } from '../../../shared/testing/utils.test';
|
import { createTestComponent } from '../../../shared/testing/utils.test';
|
||||||
import { CollectionDataService } from '../../../core/data/collection-data.service';
|
import { CollectionDataService } from '../../../core/data/collection-data.service';
|
||||||
|
import { SharedModule } from '../../../shared/shared.module';
|
||||||
|
|
||||||
const subcommunities = [Object.assign(new Community(), {
|
const subcommunities = [Object.assign(new Community(), {
|
||||||
name: 'SubCommunity 1',
|
name: 'SubCommunity 1',
|
||||||
@@ -223,6 +224,7 @@ describe('SubmissionFormCollectionComponent Component', () => {
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
NgbModule,
|
NgbModule,
|
||||||
|
SharedModule,
|
||||||
TranslateModule.forRoot()
|
TranslateModule.forRoot()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
@@ -366,8 +368,8 @@ describe('SubmissionFormCollectionComponent Component', () => {
|
|||||||
|
|
||||||
comp.searchListCollection$ = observableOf(mockCollectionList);
|
comp.searchListCollection$ = observableOf(mockCollectionList);
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
dropdowBtn = fixture.debugElement.query(By.css('#collectionControlsMenuButton'));
|
dropdowBtn = fixture.debugElement.query(By.css('#dsSelectMenuButton'));
|
||||||
dropdownMenu = fixture.debugElement.query(By.css('#collectionControlsDropdownMenu'));
|
dropdownMenu = fixture.debugElement.query(By.css('#dsSelectDropdownMenu'));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have dropdown menu closed', () => {
|
it('should have dropdown menu closed', () => {
|
||||||
|
Reference in New Issue
Block a user