Skip to content

Instantly share code, notes, and snippets.

@KaneCheshire
Last active July 4, 2018 09:57
Show Gist options
  • Save KaneCheshire/583086b8ce01b0ae524ef1da009c44ad to your computer and use it in GitHub Desktop.
Save KaneCheshire/583086b8ce01b0ae524ef1da009c44ad to your computer and use it in GitHub Desktop.
struct Step {
@discardableResult
init(I handler: () -> Void) {
handler()
}
@discardableResult
init(I handler: @autoclosure () -> Void) {
handler()
}
}
typealias Given = Step
typealias When = Step
typealias Then = Step
typealias And = Step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment