Skip to content

Commit

Permalink
test(async-flow): add test of host rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Jul 13, 2024
1 parent b656ada commit 65c5a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/async-flow/test/async-flow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const testGoodReplay = async (t, zone) => {
// same question. different answer
t.is(prod2, 42);
t.log('about to await p3');
await p3;
t.is(await p3.catch(r => r), 'done');
t.log('p3 settled');
},
};
Expand Down Expand Up @@ -294,7 +294,7 @@ const testGoodReplay = async (t, zone) => {
]);

// @ts-expect-error TS doesn't know it is a resolver
r3.resolve('done');
r3.reject('done');
await eventLoopIteration();

t.is(await when(outcomeV), undefined);
Expand Down

0 comments on commit 65c5a0a

Please sign in to comment.