mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 20:13:07 +00:00
Fix for PR#1822 - Fix is in section-form-component.ts. Adjusted two equality checks for scope type which always returned false.
This commit is contained in:
@@ -357,7 +357,7 @@ describe('SubmissionSectionFormComponent test suite', () => {
|
||||
describe('in workspace scope', () => {
|
||||
beforeEach(() => {
|
||||
// @ts-ignore
|
||||
comp.submissionObject = { type: WorkspaceItem.type };
|
||||
comp.submissionObject = { type: WorkspaceItem.type.value };
|
||||
});
|
||||
|
||||
it('should return true for unscoped fields', () => {
|
||||
@@ -376,7 +376,7 @@ describe('SubmissionSectionFormComponent test suite', () => {
|
||||
describe('in workflow scope', () => {
|
||||
beforeEach(() => {
|
||||
// @ts-ignore
|
||||
comp.submissionObject = { type: WorkflowItem.type };
|
||||
comp.submissionObject = { type: WorkflowItem.type.value };
|
||||
});
|
||||
|
||||
it('should return true when field is unscoped', () => {
|
||||
|
Reference in New Issue
Block a user