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();
fork icon45
star icon0
watch icon1

+ 7 other calls in file