Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 469 Bytes

File metadata and controls

18 lines (13 loc) · 469 Bytes

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
});