mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
resolved prod build issues
This commit is contained in:
@@ -22,6 +22,7 @@ import { Community } from '../../core/shared/community.model';
|
||||
import { MockRouter } from '../../shared/mocks/mock-router';
|
||||
import { ResourceType } from '../../core/shared/resource-type';
|
||||
import { createSuccessfulRemoteDataObject$ } from '../../shared/testing/utils';
|
||||
import { BrowseEntry } from '../../core/shared/browse-entry.model';
|
||||
|
||||
describe('BrowseByMetadataPageComponent', () => {
|
||||
let comp: BrowseByMetadataPageComponent;
|
||||
@@ -41,21 +42,21 @@ describe('BrowseByMetadataPageComponent', () => {
|
||||
|
||||
const mockEntries = [
|
||||
{
|
||||
type: ResourceType.BrowseEntry,
|
||||
type: BrowseEntry.type,
|
||||
authority: null,
|
||||
value: 'John Doe',
|
||||
language: 'en',
|
||||
count: 1
|
||||
},
|
||||
{
|
||||
type: ResourceType.BrowseEntry,
|
||||
type: BrowseEntry.type,
|
||||
authority: null,
|
||||
value: 'James Doe',
|
||||
language: 'en',
|
||||
count: 3
|
||||
},
|
||||
{
|
||||
type: ResourceType.BrowseEntry,
|
||||
type: BrowseEntry.type,
|
||||
authority: null,
|
||||
value: 'Fake subject',
|
||||
language: 'en',
|
||||
|
@@ -66,7 +66,7 @@ describe('AlertComponent test suite', () => {
|
||||
compAsAny = comp;
|
||||
comp.content = 'test alert';
|
||||
comp.dismissible = true;
|
||||
comp.value = AlertType.Info;
|
||||
comp.type = AlertType.Info;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
|
@@ -8,7 +8,7 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
import { DsDynamicRelationGroupComponent } from './dynamic-relation-group.components';
|
||||
import { DynamicRelationGroupModel, DynamicRelationGroupModelConfig } from './dynamic-relation-group.model';
|
||||
import { FormRowModel, SubmissionFormsModel } from '../../../../../../core/config/models/config-submission-forms.model';
|
||||
import { SubmissionFormsModel } from '../../../../../../core/config/models/config-submission-forms.model';
|
||||
import { FormFieldModel } from '../../../models/form-field.model';
|
||||
import { FormBuilderService } from '../../../form-builder.service';
|
||||
import { FormService } from '../../../../form.service';
|
||||
@@ -25,6 +25,7 @@ import { AuthorityServiceStub } from '../../../../../testing/authority-service-s
|
||||
import { MOCK_SUBMISSION_CONFIG } from '../../../../../testing/mock-submission-config';
|
||||
import { Store, StoreModule } from '@ngrx/store';
|
||||
import { MockStore } from '../../../../../testing/mock-store';
|
||||
import { FormRowModel } from '../../../../../../core/config/models/config-submission-form.model';
|
||||
|
||||
export let FORM_GROUP_TEST_MODEL_CONFIG;
|
||||
|
||||
|
@@ -39,7 +39,6 @@ import { DynamicListRadioGroupModel } from './ds-dynamic-form-ui/models/list/dyn
|
||||
import { AuthorityOptions } from '../../../core/integration/models/authority-options.model';
|
||||
import { FormFieldModel } from './models/form-field.model';
|
||||
import {
|
||||
FormRowModel,
|
||||
SubmissionFormsModel
|
||||
} from '../../../core/config/models/config-submission-forms.model';
|
||||
import { FormBuilderService } from './form-builder.service';
|
||||
@@ -49,6 +48,7 @@ import { FormFieldMetadataValueObject } from './models/form-field-metadata-value
|
||||
import { DynamicConcatModel } from './ds-dynamic-form-ui/models/ds-dynamic-concat.model';
|
||||
import { DynamicLookupNameModel } from './ds-dynamic-form-ui/models/lookup/dynamic-lookup-name.model';
|
||||
import { DynamicRowArrayModel } from './ds-dynamic-form-ui/models/ds-dynamic-row-array-model';
|
||||
import { FormRowModel } from '../../../core/config/models/config-submission-form.model';
|
||||
|
||||
describe('FormBuilderService test suite', () => {
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
import { FormFieldModel } from '../models/form-field.model';
|
||||
import { FormRowModel } from '../../../../core/config/models/config-submission-forms.model';
|
||||
import { RowParser } from './row-parser';
|
||||
import { DynamicRowGroupModel } from '../ds-dynamic-form-ui/models/ds-dynamic-row-group-model';
|
||||
import { DynamicRowArrayModel } from '../ds-dynamic-form-ui/models/ds-dynamic-row-array-model';
|
||||
import { FormRowModel } from '../../../../core/config/models/config-submission-form.model';
|
||||
|
||||
describe('RowParser test suite', () => {
|
||||
|
||||
|
@@ -123,7 +123,7 @@ describe('Notifications reducer', () => {
|
||||
cdr.detectChanges();
|
||||
|
||||
const action = new NewNotificationAction(notification);
|
||||
action.value = 'NothingToDo, return only the state';
|
||||
action.type = 'NothingToDo, return only the state';
|
||||
|
||||
const lastState = notificationsReducer(stateBis, action);
|
||||
expect(lastState.length).toEqual(1);
|
||||
|
@@ -34,7 +34,6 @@ import { CommonModule } from '@angular/common';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { FormComponent } from '../../../shared/form/form.component';
|
||||
import { FormFieldModel } from '../../../shared/form/builder/models/form-field.model';
|
||||
import { FormRowModel } from '../../../core/config/models/config-submission-forms.model';
|
||||
import { ConfigData } from '../../../core/config/config-data';
|
||||
import { PageInfo } from '../../../core/shared/page-info.model';
|
||||
import { FormFieldMetadataValueObject } from '../../../shared/form/builder/models/form-field-metadata-value.model';
|
||||
@@ -43,6 +42,7 @@ import { DsDynamicInputModel } from '../../../shared/form/builder/ds-dynamic-for
|
||||
import { SubmissionSectionError } from '../../objects/submission-objects.reducer';
|
||||
import { DynamicFormControlEvent, DynamicFormControlEventType } from '@ng-dynamic-forms/core';
|
||||
import { JsonPatchOperationPathCombiner } from '../../../core/json-patch/builder/json-patch-operation-path-combiner';
|
||||
import { FormRowModel } from '../../../core/config/models/config-submission-form.model';
|
||||
|
||||
function getMockSubmissionFormsConfigService(): SubmissionFormsConfigService {
|
||||
return jasmine.createSpyObj('FormOperationsService', {
|
||||
|
Reference in New Issue
Block a user