Skip to content

testing: add richer assetions #10

Description

@josephjclark

In tests I want to be able to:

  • call a webhook and assert on the response (sync or async). Eg lightning.workflow('x').respondWith(code, payload)
  • trigger a workflow and assert on the exist state lightning.workflow('x').exitWith('success')
  • trigger a workflow and get the output for a steplightning.workflow('x').output('step-a', expected)
  • trigger a workflow and get the final state lightning.workflow('x').finalState('step-a', expected)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions