-
Notifications
You must be signed in to change notification settings - Fork 47
Add helper method to ignore output #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is great! We'd also need a counter-part API on the |
/// - key: The key of the expected workflow (if specified). | ||
/// - rendering: The rendering result that should be returned when the workflow of this type is rendered. | ||
/// - assertions: Additional assertions for the given workflow, if any. You may use this to assert the properties of the requested workflow are as expected. | ||
public func expectWorkflowIgnoringOutput<ExpectedWorkflowType: Workflow>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dhavalshreyas Is this in line with what you had in mind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! This is it :)
/// - key: The key of the expected workflow (if specified). | ||
/// - rendering: The rendering result that should be returned when the workflow of this type is rendered. | ||
/// - assertions: Additional assertions for the given workflow, if any. You may use this to assert the properties of the requested workflow are as expected. | ||
public func expectWorkflowIgnoringOutput<ExpectedWorkflowType: Workflow>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! This is it :)
Thanks @watt, |
This PR adds a helper method to
AnyWorkflowConvertible
to ignore outputs.I'm not sure if this is testable, but happy to add tests if someone has an idea how!
Checklist