hey all, I’m trying to unit test a workflow that u...
# ask-the-community
m
hey all, I’m trying to unit test a workflow that uses
conditional
as follows:
Copy code
first_result = conditional("test").if_(workflow_parameter == some_string).then(task_a(input[input)).else().then_(workflow_parameter)

final_result = task_b(input=first_result)
I’m using
task_mock
to mock the return of
task_a
. in my debugger, I can see that both `task_a`’s return value and
workflow_parameter
are of type Promise.
first_result
, however, appears to be of type
VoidPromise
, and the test is failing with
Failed to Bind variable input for function task_b
is there something I need to do to mock a
conditional
?