npm.io
0.0.37 • Published 2 years ago

@types/jasmine-promise-matchers

Licence
MIT
Version
0.0.37
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0337 GMT
  • Dependencies: @types/jasmine

Credits

These definitions were written by Matthew Hill.