From 8a7ea9eb5faca407890cfa597eca2915660ab6bd Mon Sep 17 00:00:00 2001 From: David Khourshid Date: Fri, 9 Feb 2024 14:10:56 -0500 Subject: [PATCH] Fix warnings --- packages/core/test/actorLogic.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/test/actorLogic.test.ts b/packages/core/test/actorLogic.test.ts index e68b441122..2e4f3fedc6 100644 --- a/packages/core/test/actorLogic.test.ts +++ b/packages/core/test/actorLogic.test.ts @@ -486,7 +486,7 @@ describe('observable logic (fromObservable)', () => { it('can spawn an actor', () => { expect.assertions(1); const observableLogic = fromObservable(({ spawnChild }) => { - const actorRef = spawnChild(fromPromise(() => Promise.resolve(42))); + const actorRef = spawnChild(fromCallback(() => {})); expect(isActorRef(actorRef)).toBe(true); return of(actorRef); }); @@ -519,7 +519,7 @@ describe('eventObservable logic (fromEventObservable)', () => { it('can spawn an actor', () => { expect.assertions(1); const observableLogic = fromObservable(({ spawnChild }) => { - const actorRef = spawnChild(fromPromise(() => Promise.resolve(42))); + const actorRef = spawnChild(fromCallback(() => {})); expect(isActorRef(actorRef)).toBe(true); return of({ type: 'a', payload: actorRef }); });