Skip to content

Instantly share code, notes, and snippets.

@frootloops
Created August 6, 2021 09:08
Show Gist options
  • Save frootloops/baf347d83139b921c91479bfca2c2300 to your computer and use it in GitHub Desktop.
Save frootloops/baf347d83139b921c91479bfca2c2300 to your computer and use it in GitHub Desktop.
someMockFunc.succeeds(.sample()) // if ouput is Result<T>
someMockFunc.fails(error) // if ouput is Result<T>
someMockFunc.returnsNil() // if ouput is T?
someMockFunc.returns() // if ouput is Void
expect(someMockFunc).to(beCalled())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment