Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SinonMock

Index

Methods

expects

  • Overrides obj.method with a mock function and returns it.

    Parameters

    • method: string

    Returns SinonExpectation

restore

  • restore(): void
  • Restores all mocked methods.

    Returns void

verify

  • verify(): void
  • Verifies all expectations on the mock. If any expectation is not satisfied, an exception is thrown. Also restores the mocked methods.

    Returns void