Constawait expectAsync(
Promise.resolve('hello'),
'to fulfill with value satisfying',
'hello',
); // passes
await expectAsync(
Promise.resolve('world'),
'to resolve with value satisfying',
/wor/,
); // passes
await expectAsync(
Promise.resolve({ name: 'John' }),
'to fulfill with value satisfying',
{ name: 'John' },
); // passes
Assertion for testing if a Promise fulfills with a value satisfying specific criteria.