Skip to content

Commit

Permalink
feat: add WorkflowFlowActions metadata support (#991)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Carvin <[email protected]>
  • Loading branch information
scolladon and mcarvin8 authored Jan 23, 2025
1 parent a2ba213 commit 4c2bce2
Show file tree
Hide file tree
Showing 21 changed files with 265 additions and 117 deletions.
5 changes: 3 additions & 2 deletions __tests__/unit/lib/service/inFileHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jest.mock('../../../../src/utils/fsHelper')
const workflowType = {
childXmlNames: [
'WorkflowFieldUpdate',
'WorkflowFlowAction',
'WorkflowKnowledgePublish',
'WorkflowTask',
'WorkflowAlert',
Expand Down Expand Up @@ -70,7 +71,7 @@ describe.each([true, false])(`inFileHandler -d: %s`, generateDelta => {
)
mockCompare.mockImplementation(() =>
Promise.resolve({
added: new Map([['WorkflowAlert', new Set(['test'])]]),
added: new Map([['WorkflowFlowAction', new Set(['test'])]]),
deleted: new Map(),
})
)
Expand All @@ -82,7 +83,7 @@ describe.each([true, false])(`inFileHandler -d: %s`, generateDelta => {
// Assert
expect(work.diffs.destructiveChanges.size).toEqual(0)
expect(work.diffs.package.get('Workflow')).toEqual(new Set(['Account']))
expect(work.diffs.package.get('WorkflowAlert')).toEqual(
expect(work.diffs.package.get('WorkflowFlowAction')).toEqual(
new Set(['Account.test'])
)

Expand Down
161 changes: 55 additions & 106 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c2bce2

Please sign in to comment.