我正在ngrx商店测试效果。在将ngrx更新到版本后,我发现测试它的方式已经改变。
import { hot, cold } from 'jasmine-marbles';
it('should work', () => {
actions = hot('--a-', { a: SomeAction });
const expected = cold('--b', { b: AnotherAction });
expect(effects.someSource$).toBeObservable(expected);
});
不幸的是,我没有找到茉莉花弹珠的任何文档。