test(ObservablePipe): onDestroy shouldn't throw
This commit is contained in:
parent
ac510b67cc
commit
d61a0dfa22
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue