-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
did it support not.toBeObservable? #11
Comments
Hi @yutsengwei |
I am doing something similar. any ideas as to what we can expect instead of doing .not.toBeObservable(ourObservable) ? it looks like what it is receiving is "Array []" but no matter what i change the expected value to it is not matching exactly |
actually just got the answer by accident: const expected = cold('') |
Fixed via #55 |
Hi guys,
as title, I am trying to write a test with marbles and Jasmine in Angular.
I have a effect with a filter,
for example:
loadDatas$: Observable = this.actions$.ofType(LOAD_DATAS_ACTION).pipe(
withLatestFrom(this.store.select(getDatas), (action, datas) =>datas),
filter(data => !data.length),
switchMap(() => {
return this.dataApi.find().pipe(
.....
basically, it won't do switch map if the data length > 0.
I wanna test data length > 0,
so I try expect(effects.loadTrials$).not.toBeObservable(expected);
but not what I expect...
did I try something wrong?
The text was updated successfully, but these errors were encountered: