jasmine-marbles

  • Version 0.9.2
  • Published
  • 147 kB
  • 1 dependency
  • MIT license

Install

npm i jasmine-marbles
yarn add jasmine-marbles
pnpm add jasmine-marbles

Overview

Marble testing helpers for RxJS and Jasmine

Index

Functions

function addMatchers

addMatchers: () => void;

    function cold

    cold: (marbles: string, values?: any, error?: any) => TestColdObservable;

      function getTestScheduler

      getTestScheduler: () => TestScheduler;

        function hot

        hot: (marbles: string, values?: any, error?: any) => TestHotObservable;

          function initTestScheduler

          initTestScheduler: () => void;

            function resetTestScheduler

            resetTestScheduler: () => void;

              function setupEnvironment

              setupEnvironment: () => void;

                function time

                time: (marbles: string) => number;

                  Namespaces

                  namespace global

                  namespace global {}

                    namespace global.jasmine

                    namespace global.jasmine {}

                      interface Matchers

                      interface Matchers<T> {}

                        method toBeObservable

                        toBeObservable: {
                        (expected: TestObservable): boolean;
                        (expected: TestObservable): boolean;
                        };

                          method toHaveSubscriptions

                          toHaveSubscriptions: {
                          (marbles: string | string[]): boolean;
                          (marbles: string | string[]): boolean;
                          };

                            namespace global.jest

                            namespace global.jest {}

                              interface Matchers

                              interface Matchers<R> {}

                                method toBeObservable

                                toBeObservable: { (expected: TestObservable): R; (expected: TestObservable): R };

                                  method toHaveSubscriptions

                                  toHaveSubscriptions: {
                                  (marbles: string | string[]): R;
                                  (marbles: string | string[]): R;
                                  };

                                    Package Files (2)

                                    Dependencies (1)

                                    Dev Dependencies (21)

                                    Peer Dependencies (1)

                                    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/jasmine-marbles.

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