CodeSequence / jasmine-marbles

Marble testing helpers for RxJS and Jasmine
MIT License
117 stars 39 forks source link

Missing `hasValue` attributes causes assertions to fail #90

Closed bkad closed 2 years ago

bkad commented 2 years ago

using rxjs 7.5.2 and jasmine-marbles 0.8.4, this test fails:

const actions = of({ prop: 1 });
expect(actions).toBeObservable(cold('(a|)', { a: { prop: 1 } }));
Expected: (a|),
Received: (?|),

Expected:
[{"frame":0,"notification":{"kind":"N","value":{"prop":1}}},{"frame":0,"notification":{"kind":"C"}}]

Received:
[{"frame":0,"notification":{"kind":"N","value":{"prop":1},"hasValue":true}},{"frame":0,"notification": "kind":"C","hasValue":false}}],

As far as I can tell, the only difference is the missing hasValue attribute.

brandonroberts commented 2 years ago

That's correct behavior. The 0.9.1 release supports RxJS 7.x