lib/pa11y.js
function verifyOptions(options) {
	if (!pa11y.allowedStandards.includes(options.standard)) {
		throw new Error(`Standard must be one of ${pa11y.allowedStandards.join(', ')}`);
	}
	if (options.page && !options.browser) {
		throw new Error('The page option must only be set alongside the browser option');
	}
}
function verifyOptions(options) {
	if (!pa11y.allowedStandards.includes(options.standard)) {
		throw new Error(`Standard must be one of ${pa11y.allowedStandards.join(', ')}`);
	}
	if (options.page && !options.browser) {
		throw new Error('The page option must only be set alongside the browser option');
	}
}
function verifyOptions ( options ) { if ( ! pa11y . allowedStandards . includes ( options . standard ) ) { throw new Error ( ` ${ pa11y . allowedStandards . join ( ', ' ) } ` ) ; } if ( options . page && ! options . browser ) { throw new Error ( 'The page option must only be set alongside the browser option' ) ; } }
Verify that passed in options are valid.
@private
@param {Object} [options={}] - The options to verify.
@returns {Undefined} Returns nothing.
@throws {Error} Throws if options are not valid.
Verify that passed in options are valid .