mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
Revert "Submission dropzone issues"
This commit is contained in:
@@ -24,7 +24,7 @@ import { HALEndpointServiceStub } from '../../shared/testing/hal-endpoint-servic
|
||||
import { createTestComponent } from '../../shared/testing/utils.test';
|
||||
import { Item } from '../../core/shared/item.model';
|
||||
import { TestScheduler } from 'rxjs/testing';
|
||||
import { SectionsService } from '../sections/sections.service';
|
||||
|
||||
|
||||
describe('SubmissionFormComponent Component', () => {
|
||||
|
||||
@@ -55,7 +55,6 @@ describe('SubmissionFormComponent Component', () => {
|
||||
{ provide: AuthService, useClass: AuthServiceStub },
|
||||
{ provide: HALEndpointService, useValue: new HALEndpointServiceStub('workspaceitems') },
|
||||
{ provide: SubmissionService, useValue: submissionServiceStub },
|
||||
{ provide: SectionsService, useValue: { isSectionTypeAvailable: () => observableOf(true) } },
|
||||
ChangeDetectorRef,
|
||||
SubmissionFormComponent
|
||||
],
|
||||
@@ -116,7 +115,7 @@ describe('SubmissionFormComponent Component', () => {
|
||||
expect(compAsAny.submissionSections).toBeUndefined();
|
||||
expect(compAsAny.subs).toEqual([]);
|
||||
expect(submissionServiceStub.startAutoSave).not.toHaveBeenCalled();
|
||||
expect(comp.loading).toBeObservable(cold('(a|)', { a: true }));
|
||||
expect(comp.loading).toBeObservable(cold('(a|)', {a: true}));
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -141,7 +140,7 @@ describe('SubmissionFormComponent Component', () => {
|
||||
});
|
||||
scheduler.flush();
|
||||
|
||||
expect(comp.submissionSections).toBeObservable(cold('(a|)', { a: sectionsList }));
|
||||
expect(comp.submissionSections).toBeObservable(cold('(a|)', {a: sectionsList}));
|
||||
|
||||
expect(submissionServiceStub.dispatchInit).toHaveBeenCalledWith(
|
||||
collectionId,
|
||||
@@ -202,7 +201,7 @@ describe('SubmissionFormComponent Component', () => {
|
||||
submissionDefinition: {
|
||||
name: 'traditional'
|
||||
}
|
||||
} as any);
|
||||
} as any);
|
||||
fixture.detectChanges();
|
||||
});
|
||||
scheduler.flush();
|
||||
|
Reference in New Issue
Block a user