toBeDone(received, failureMessage) {
    const pass = received.isDone();

    const message = () =>
      [
        `${this.utils.matcherHint('.toBeDone')}\n`,
        `Expected promise to be resolved: ${this.utils.printExpected(failureMessage)}`,
        `  ${this.utils.printReceived(received.getDebugValues())}`,
      ].join('\n');

    return {message, pass};
  }
Asserts that an inspectable promise created by makePromiseInspectable is currently resolved or rejected.
This is useful for situations where we want to test that we are actually waiting for a particular event.

@param {ReturnType<import('../test-utils.js')['makePromiseInspectable']>} received
@param {string} failureMessage