The colormixer has one static method mix that takes observables of whether or not a color is going into the mixer.
Install jasmine marbles.
Http bit ly 1di8vbh if you had three wishes what would you wish for.
Here we create two observables one and two using the cold helper provided by jasmine marbles if you aren t familiar with hot and cold read this post by ben lesh.
A required library for unit testing of effects ngrx store freeze.
First you will want to open up a terminal and run this npm install command.
For this article i will use jasmine marbles to add marble testing to my jasmine based unit tests.
When executed this method will return an observable of what color the mixer is outputting.
0 2 0 supports rxjs 5.
The following are dev tools for ngrx npm install jasmine marbles ngrx store freeze generate ngrx ngrx store devtools only dev save brief description.
To test our colormixer we first need to install a marble testing library.
Better yet how should you wish to get what you wan.
0 3 supports rxjs 6.
Another option would be to use rxjs marbles which can be used with any test framework.
Marble testing helpers for rxjs and jasmine.
What tech is like in rest of world.
Providing mock actions for testing ngrx actions with jasmine marbles.
The overflow blog podcast 269.
Subscribe for more film theory.
Npm install jasmine marbles save dev.
Npm install jasmine marbles save dev testing colormixer.
Browse other questions tagged angular jasmine ngrx effects or ask your own question.