function assertDone(name, asyncName, complete) {
  if (!complete) {
    throw new Error(
      '`' + name + '` finished async. Use `' + asyncName + '` instead'
    )
  }
}
Assert that `complete` is `true`.

@param {string} name
@param {string} asyncName
@param {unknown} complete
@returns {asserts complete is true}