Skip to content

seibii/cyclejs-test-helpers

 
 

Repository files navigation

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

About

A small collection of useful utilities

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 57.4%
  • TypeScript 42.6%