Skip to content

Commit

Permalink
chore: rename workflowId to workflowName and also targetWorkflow (#1927)
Browse files Browse the repository at this point in the history
* chore: rename workflowId to workflowName and also targetWorkflow

* chore: fix tests and move outputs calc lower

* chore: run prettier

* Update packages/respect-core/src/modules/flow-runner/call-api-and-analyze-results.ts

Co-authored-by: Andrew Tatomyr <[email protected]>

---------

Co-authored-by: Andrew Tatomyr <[email protected]>
  • Loading branch information
RomanHotsiy and tatomyr authored Feb 20, 2025
1 parent cd05db6 commit 9b25fce
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 216 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ describe('callAPIAndAnalyzeResults', () => {

it('should call API and return checks result', async () => {
const serverUrl = 'https://catfact.ninja/';
const workflowName = 'get-breeds-workflow';
const workflowId = 'get-breeds-workflow';
const step = ctx.workflows[0].steps[0];

const mockResponse = {
Expand All @@ -359,7 +359,7 @@ describe('callAPIAndAnalyzeResults', () => {

const result = await callAPIAndAnalyzeResults({
ctx,
workflowName,
workflowId,
step,
requestData: {
serverUrl: { url: serverUrl },
Expand Down
Loading

0 comments on commit 9b25fce

Please sign in to comment.