How to use the throw function from rxjs
Find comprehensive JavaScript rxjs.throw code examples handpicked from public code repositorys.
179 180 181 182 183 184 185 186 187 188
it('should onError when an Observable.throw of Error is returned from call.', function(done) { var router = new R([{ route: 'videos[{integers:id}].rating', call: function(callPath, args) { return Observable.throw(new Error("Oops?")); } }]); var onError = sinon.spy();
45
0
1
+ 7 other calls in file