From 7173e5ad221cb64ac1f8ae06fd9726ec748ebaa1 Mon Sep 17 00:00:00 2001 From: Grzegorz Kielak Date: Tue, 2 Jan 2024 10:34:44 +0100 Subject: [PATCH] test: fix type error in of-type.spec.ts --- src/operators/of-type.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators/of-type.spec.ts b/src/operators/of-type.spec.ts index 7fccef68..95f2fb88 100644 --- a/src/operators/of-type.spec.ts +++ b/src/operators/of-type.spec.ts @@ -32,7 +32,7 @@ describe('operators/ofType', () => { expectedResults.push(new A()); stream.next(new B()); - stream.next(...expectedResults); + expectedResults.forEach((event) => stream.next(event)); stream.next(new Date()); expect(output).toEqual(expectedResults);