function getCategoryAssertionResults(auditProperty, assertionOptions, lhrs) {
  if (auditProperty.length !== 1) {
    throw new Error(`Invalid resource-summary assertion "${auditProperty.join('.')}"`);
  }

  const categoryId = auditProperty[0];

  /** @type {Array<LH.AuditResult|undefined>} */
  const psuedoAudits = lhrs.map(lhr => {
    const category = lhr.categories[categoryId];
    if (!category) return undefined;

    return {
      score: category.score,
    };
  });

  return getStandardAssertionResults(psuedoAudits, assertionOptions).map(result => ({
    ...result,
    auditProperty: categoryId,
  }));
}
Gets the assertion results for a particular audit. This method delegates some of the unique
handling for budgets and auditProperty assertions as necessary.

@param {Array<string>} auditProperty
@param {LHCI.AssertCommand.AssertionOptions} assertionOptions
@param {Array<LH.Result>} lhrs
@return {LHCI.AssertResults.AssertionResultNoURL[]}