lib/reporter.js
function buildReporter(methods) {
	return {
		supports: methods.supports,
		begin: buildReporterMethod(methods.begin),
		results: buildReporterMethod(methods.results),
		log: {
			debug: buildReporterMethod(methods.debug),
			error: buildReporterMethod(methods.error, 'error'),
			info: buildReporterMethod(methods.info)
		}
	};
}
function buildReporter(methods) {
	return {
		supports: methods.supports,
		begin: buildReporterMethod(methods.begin),
		results: buildReporterMethod(methods.results),
		log: {
			debug: buildReporterMethod(methods.debug),
			error: buildReporterMethod(methods.error, 'error'),
			info: buildReporterMethod(methods.info)
		}
	};
}
function buildReporter ( methods ) { return { supports : methods . supports , begin : buildReporterMethod ( methods . begin ) , results : buildReporterMethod ( methods . results ) , log : { debug : buildReporterMethod ( methods . debug ) , error : buildReporterMethod ( methods . error , 'error' ) , info : buildReporterMethod ( methods . info ) } } ; }
Build a Pa11y reporter.
@private
@param {Object} methods - The reporter methods.
@returns {Promise} Returns a promise which resolves with the new reporter.
Build a Pa11y reporter .