Merge pull request #1828 from FelixNicol/Virtual-metadatas-visibility-workflow-not-updated

Fix for PR#1822 - Adjusted two equality checks for scope type which always return false.
This commit is contained in:
Tim Donohue
2022-10-03 17:15:26 -05:00
committed by GitHub
4 changed files with 9 additions and 6 deletions

View File

@@ -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', () => {