test(ObservablePipe): onDestroy shouldn't throw

This commit is contained in:
gdi2290 2015-05-18 15:20:40 -07:00 committed by Victor Berchet
parent ac510b67cc
commit d61a0dfa22
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ export function main() {
describe("onDestroy", () => { describe("onDestroy", () => {
it("should do nothing when no subscription", () => { it("should do nothing when no subscription", () => {
pipe.onDestroy(); expect(() => pipe.onDestroy()).not.toThrow();
}); });
it("should dispose of the existing subscription", inject([AsyncTestCompleter], (async) => { it("should dispose of the existing subscription", inject([AsyncTestCompleter], (async) => {