Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Feb 9, 2024
1 parent 697e1b0 commit 8a7ea9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/test/actorLogic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down Expand Up @@ -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 });
});
Expand Down

0 comments on commit 8a7ea9e

Please sign in to comment.