CodeSequence / jasmine-marbles

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

Fix: 'Spec '...' has no expectations.' warning #60

Closed RGunning closed 3 years ago

RGunning commented 3 years ago

Fixes https://github.com/synapse-wireless-labs/jasmine-marbles/issues/59

If the only expectation in a testcase is expectObservable(actual$).toBe('a', { a: 0 }); then currently the 'Spec '...' has no expectations.' warning is shown.

When actual is an array and passed is true currently no expectations are called. The expectations are currently only called if actual and expected values are not equal.

Fixed by adding an expectation for when actual is an array and passed is true.