Sha256: d28f226e19dcfab31c61cec670069b0fa2511b9e6072dfb23ac4de8ba779b0f8
Contents?: true
Size: 650 Bytes
Versions: 250
Compression:
Stored size: 650 Bytes
Contents
/* global axe*/ /** * Get the pass, fail, or incomplete message for a check. * @param {String} checkId The check id * @param {String} type The message type ('pass', 'fail', or 'incomplete') * @param {Object} [data] The check data * @return {String} */ axe.utils.getCheckMessage = function getCheckMessage(checkId, type, data) { const check = axe._audit.data.checks[checkId]; if (!check) { throw new Error(`Cannot get message for unknown check: ${checkId}.`); } if (!check.messages[type]) { throw new Error(`Check "${checkId}"" does not have a "${type}" message.`); } return axe.utils.processMessage(check.messages[type], data); };
Version data entries
250 entries across 250 versions & 1 rubygems