@types/angular-mocks

  • Version 1.7.4
  • Published
  • 39.2 kB
  • 1 dependency
  • MIT license

Install

npm i @types/angular-mocks
yarn add @types/angular-mocks
pnpm add @types/angular-mocks

Overview

TypeScript definitions for angular-mocks

Index

Namespaces

namespace angular-mocks/ngAnimateMock

module 'angular-mocks/ngAnimateMock' {}

    namespace angular-mocks/ngMock

    module 'angular-mocks/ngMock' {}

      namespace angular-mocks/ngMockE2E

      module 'angular-mocks/ngMockE2E' {}

        namespace global

        namespace global {}

          variable inject

          const inject: angular.IInjectStatic;

            function browserTrigger

            browserTrigger: (
            element: JQuery | Element,
            eventType?: string,
            eventData?: angular.mock.IBrowserTriggerEventData
            ) => void;
            • This is a global (window) function that is only available when the ngMock module is included. It can be used to trigger a native browser event on an element, which is useful for unit testing.

              Parameter element

              Either a wrapped jQuery/jqLite node or a DOM element.

              Parameter eventType

              Optional event type. If none is specified, the function tries to determine the right event type for the element, e.g. change for input[text].

              Parameter eventData

              An optional object which contains additional event data used when creating the event.

            Package Files (2)

            Dependencies (1)

            Dev Dependencies (0)

            No dev dependencies.

            Peer Dependencies (0)

            No peer dependencies.

            Badge

            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/angular-mocks.

            • Markdown
              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/angular-mocks)
            • HTML
              <a href="https://www.jsdocs.io/package/@types/angular-mocks"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>