We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6612f5 commit dfa4f0bCopy full SHA for dfa4f0b
test/observables.js
@@ -16,7 +16,9 @@ function successValue() {
16
}
17
18
function failure() {
19
- return rxjs.throw(new Error('Observable error'));
+ return rxjs.throwError(function () {
20
+ return new Error('Observable error');
21
+ });
22
23
24
describe('observables', function () {
@@ -37,6 +39,7 @@ describe('observables', function () {
37
39
it('should handle an errored observable', function (done) {
38
40
asyncDone(failure, function (err) {
41
expect(err).toBeInstanceOf(Error);
42
+ expect(err.message).toEqual('Observable error');
43
done();
44
});
45
0 commit comments