Skip to main content

test()

Defines a test case.
  • name: The name of the test case.
  • callback: The callback function containing the test logic.

Examples

Functions

evalGitHubEvent()

Will run any event you pass thought your handlers and return the result.
  • event: The GitHub event to evaluate.

equal()

Asserts that two values are equal.
  • a: The first value.
  • b: The second value.

genGitHubEvent()

Wrapper that can help generate GitHub notifications for testing.
  • params:
    • title: The title of the event.
    • reason: The reason for the event.
    • type: The type of the event.
    • repository:
      • name: The name of the repository.
      • owner: The owner of the repository.
      • isPrivate: Whether the repository is private.
      • isFork: Whether the repository is a fork.
Wrapper that can help evaluate GitHub notifications for testing

Types

GitHubEvalResult

Represents the result of evaluating a GitHub event.