87242: Refactor workspaceItem to submissionObject

This commit is contained in:
Yura Bondarenko
2022-02-15 13:21:27 +01:00
parent f4b8d4fe41
commit a698610043
2 changed files with 8 additions and 7 deletions

View File

@@ -357,7 +357,7 @@ describe('SubmissionSectionFormComponent test suite', () => {
describe('in workspace scope', () => {
beforeEach(() => {
// @ts-ignore
comp.workspaceItem = { type: WorkspaceItem.type };
comp.submissionObject = { type: WorkspaceItem.type };
});
it('should return true for unscoped fields', () => {
@@ -376,7 +376,7 @@ describe('SubmissionSectionFormComponent test suite', () => {
describe('in workflow scope', () => {
beforeEach(() => {
// @ts-ignore
comp.workspaceItem = { type: WorkflowItem.type };
comp.submissionObject = { type: WorkflowItem.type };
});
it('should return true when field is unscoped', () => {