@types/jasmine-promise-matchers
TypeScript icon, indicating that this package has built-in type declarations

0.0.37 • Public • Published

Installation

npm install --save @types/jasmine-promise-matchers

Summary

This package contains type definitions for jasmine-promise-matchers (https://github.com/bvaughn/jasmine-promise-matchers).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine-promise-matchers.

index.d.ts

/// <reference types="jasmine" />

declare function installPromiseMatchers(): void;

declare namespace jasmine {
    interface Matchers<T> {
        /**
         * Verifies that a value is a $q Promise.
         */
        toBePromise(): boolean;

        /**
         * Verifies that a Promise is (or has been) rejected.
         */
        toBeRejected(): boolean;

        /**
         * Verifies that a Promise is (or has been) rejected with the specified parameter.
         */
        toBeRejectedWith(value: any): boolean;

        /**
         * Verifies that a Promise is (or has been) resolved.
         */
        toBeResolved(): boolean;

        /**
         * Verifies that a Promise is (or has been) resolved with the specified parameter.
         */
        toBeResolvedWith(value: any): boolean;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/jasmine

Credits

These definitions were written by Matthew Hill.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jasmine-promise-matchers

Weekly Downloads

575

Version

0.0.37

License

MIT

Unpacked Size

4.4 kB

Total Files

5

Last publish

Collaborators

  • types