Skip to content

Commit d61a0df

Browse files
PatrickJSvicb
authored andcommitted
test(ObservablePipe): onDestroy shouldn't throw
1 parent ac510b6 commit d61a0df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/test/change_detection/pipes/observable_pipe_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function main() {
8989

9090
describe("onDestroy", () => {
9191
it("should do nothing when no subscription", () => {
92-
pipe.onDestroy();
92+
expect(() => pipe.onDestroy()).not.toThrow();
9393
});
9494

9595
it("should dispose of the existing subscription", inject([AsyncTestCompleter], (async) => {

0 commit comments

Comments
 (0)