Skip to content

Instantly share code, notes, and snippets.

@divukman
Created December 26, 2022 13:58
Show Gist options
  • Save divukman/edc672fff59f45d59c0ccee0dc51c443 to your computer and use it in GitHub Desktop.
Save divukman/edc672fff59f45d59c0ccee0dc51c443 to your computer and use it in GitHub Desktop.
fixture
// create the test situation out of given commands and/or events
.givenCommands(...) // optional
.andGiven(...) // optional
.andGivenCommands() // optional
.when(command) // define which command you want to test
// multiple optional expectation matchers
.expectSuccessfulHandlerExecution() // optional
.expectEvents(...) // optional
.expectState(...) // optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment