mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-191] fix a test in dynamic-relation-group component
This commit is contained in:
@@ -6,7 +6,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|||||||
|
|
||||||
import { Store, StoreModule } from '@ngrx/store';
|
import { Store, StoreModule } from '@ngrx/store';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
import { NgbModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
|
||||||
import { DynamicFormLayoutService, DynamicFormValidationService } from '@ng-dynamic-forms/core';
|
import { DynamicFormLayoutService, DynamicFormValidationService } from '@ng-dynamic-forms/core';
|
||||||
|
|
||||||
import { DsDynamicRelationGroupComponent } from './dynamic-relation-group.components';
|
import { DsDynamicRelationGroupComponent } from './dynamic-relation-group.components';
|
||||||
@@ -32,6 +32,7 @@ import { APP_CONFIG } from 'src/config/app-config.interface';
|
|||||||
import { environment } from 'src/environments/environment.test';
|
import { environment } from 'src/environments/environment.test';
|
||||||
import { ThemedLoadingComponent } from '../../../../../loading/themed-loading.component';
|
import { ThemedLoadingComponent } from '../../../../../loading/themed-loading.component';
|
||||||
import { ChipsComponent } from '../../../../chips/chips.component';
|
import { ChipsComponent } from '../../../../chips/chips.component';
|
||||||
|
import { AsyncPipe, NgClass, NgIf } from '@angular/common';
|
||||||
|
|
||||||
export let FORM_GROUP_TEST_MODEL_CONFIG;
|
export let FORM_GROUP_TEST_MODEL_CONFIG;
|
||||||
|
|
||||||
@@ -152,8 +153,7 @@ describe('DsDynamicRelationGroupComponent test suite', () => {
|
|||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// TODO: enable and fix this
|
describe('', () => {
|
||||||
xdescribe('', () => {
|
|
||||||
// synchronous beforeEach
|
// synchronous beforeEach
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
html = `<ds-dynamic-relation-group [model]="model"
|
html = `<ds-dynamic-relation-group [model]="model"
|
||||||
@@ -172,8 +172,7 @@ describe('DsDynamicRelationGroupComponent test suite', () => {
|
|||||||
testComp = null;
|
testComp = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: enable and fix this
|
it('should create DsDynamicRelationGroupComponent', inject([DsDynamicRelationGroupComponent], (app: DsDynamicRelationGroupComponent) => {
|
||||||
xit('should create DsDynamicRelationGroupComponent', inject([DsDynamicRelationGroupComponent], (app: DsDynamicRelationGroupComponent) => {
|
|
||||||
|
|
||||||
expect(app).toBeDefined();
|
expect(app).toBeDefined();
|
||||||
}));
|
}));
|
||||||
@@ -339,9 +338,14 @@ describe('DsDynamicRelationGroupComponent test suite', () => {
|
|||||||
selector: 'ds-test-cmp',
|
selector: 'ds-test-cmp',
|
||||||
template: ``,
|
template: ``,
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [FormsModule,
|
imports: [
|
||||||
ReactiveFormsModule,
|
DsDynamicRelationGroupComponent,
|
||||||
NgbModule]
|
NgIf,
|
||||||
|
AsyncPipe,
|
||||||
|
NgbTooltipModule,
|
||||||
|
TranslateModule,
|
||||||
|
NgClass,
|
||||||
|
]
|
||||||
})
|
})
|
||||||
class TestComponent {
|
class TestComponent {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user