cyclejs-test-helpers
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

cyclejs-test-helpers

A small collection of useful utilities

Content

diagramArbitrary

A jsverify Arbitrary, that can be used to generate random stream diagrams. Use @cycle/time to get Streams.

Usage:

const property = forall(diagramArbitrary, diagram => {
    const Time = mockTimeSource();
    const click$ = Time.diagram(diagram);
 
    //... Rest of the test
});

/cyclejs-test-helpers/

    Package Sidebar

    Install

    npm i cyclejs-test-helpers

    Weekly Downloads

    28

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    118 kB

    Total Files

    15

    Last publish

    Collaborators

    • supermanitu