Skip to main content

Introduction to ngMocks namespace

ngMocks is a namespace which provides variety of helper functions which help to customize mocks, access desired elements and instances in fixtures.

Customizing mock behavior

Simulating form control events

Simulating HTML events

Manipulating ng-template

Accessing elements and instances

Stubbing methods and properties

Helpers for tests