mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Fix tests to include translationservice dependency
This commit is contained in:
@@ -51,6 +51,8 @@ import { FormRowModel } from '../../../core/config/models/config-submission-form
|
||||
import {ConfigurationDataService} from '../../../core/data/configuration-data.service';
|
||||
import {createSuccessfulRemoteDataObject$} from '../../remote-data.utils';
|
||||
import {ConfigurationProperty} from '../../../core/shared/configuration-property.model';
|
||||
import { getMockTranslateService } from '../../mocks/translate.service.mock';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
||||
describe('FormBuilderService test suite', () => {
|
||||
|
||||
@@ -81,6 +83,7 @@ describe('FormBuilderService test suite', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
configSpy = createConfigSuccessSpy(typeFieldTestValue);
|
||||
let translateService = getMockTranslateService();
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ReactiveFormsModule],
|
||||
providers: [
|
||||
@@ -88,7 +91,8 @@ describe('FormBuilderService test suite', () => {
|
||||
{ provide: DynamicFormValidationService, useValue: {} },
|
||||
{ provide: NG_VALIDATORS, useValue: testValidator, multi: true },
|
||||
{ provide: NG_ASYNC_VALIDATORS, useValue: testAsyncValidator, multi: true },
|
||||
{ provide: ConfigurationDataService, useValue: configSpy }
|
||||
{ provide: ConfigurationDataService, useValue: configSpy },
|
||||
{ provide: TranslateService, useValue: translateService },
|
||||
]
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user