Is there a way to test observable in a function arguments?
Is there any thing like expect(someObj.foo).ToHaveBeenCalledWithObservable(cold('a|', {a: 1}))
?
Jasmine-marbles - Is there a expect(...).ToHaveBeenCalledWithObservable(...) function?
96 views Asked by gilad At
1
I don't think there is something that like that but you can maybe take advantage of
callFake
andtoBeObservable
.We
callFake
and associate a local variable to the argument that was used.Then we assert the localVariable
toBeObservable
of your expecation.