From d61a0dfa2254d0e12b779b3eee9fb5e36debefc4 Mon Sep 17 00:00:00 2001 From: gdi2290 Date: Mon, 18 May 2015 15:20:40 -0700 Subject: [PATCH] test(ObservablePipe): onDestroy shouldn't throw --- .../test/change_detection/pipes/observable_pipe_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/test/change_detection/pipes/observable_pipe_spec.js b/modules/angular2/test/change_detection/pipes/observable_pipe_spec.js index 4078b61340..63433074f7 100644 --- a/modules/angular2/test/change_detection/pipes/observable_pipe_spec.js +++ b/modules/angular2/test/change_detection/pipes/observable_pipe_spec.js @@ -89,7 +89,7 @@ export function main() { describe("onDestroy", () => { it("should do nothing when no subscription", () => { - pipe.onDestroy(); + expect(() => pipe.onDestroy()).not.toThrow(); }); it("should dispose of the existing subscription", inject([AsyncTestCompleter], (async) => {