function expectAuditWillRun(times, auditConfig) {
  var audit = createMockAudit();
  var realAudit = axs.Audit;
  var expectedInvocation = audit.expects(exactly(times)).run(ANYTHING);
  var willArgs = [];
  for (var i = 0; i < times; i++)
    willArgs.push(callFunction(realAudit.run, auditConfig));
  expectedInvocation.will.apply(expectedInvocation, willArgs);
  axs.Audit = audit.proxy();
  axs.Audit.createReport = realAudit.createReport;
  axs.Audit.auditResults = realAudit.auditResults;
  axs.Audit.accessibilityErrorMessage = realAudit.accessibilityErrorMessage;
}
/**
 * Creates an expectation that the global axs.Audit object will have its run()
 * method called |times| times.
 * This creates an interstitial mock axs.Audit object with the expectation, and
 * delegates to the real axs.Audit object to run the actual audit.
 * @param {number} times The number of times the audit is expected to run.
 */
Creates an expectation that the global axs.Audit object will have its run()
method called |times| times.
This creates an interstitial mock axs.Audit object with the expectation, and
delegates to the real axs.Audit object to run the actual audit.
@param {number} times The number of times the audit is expected to run.
Creates an expectation that the global axs . Audit object will have its run () method called |times| times . This creates an interstitial mock axs . Audit object with the expectation and delegates to the real axs . Audit object to run the actual audit . @param { number } times The number of times the audit is expected to run .
function expectAuditWillRun(times, auditConfig) {
  var audit = createMockAudit();
  var realAudit = axs.Audit;
  var expectedInvocation = audit.expects(exactly(times)).run(ANYTHING);
  var willArgs = [];
  for (var i = 0; i < times; i++)
    willArgs.push(callFunction(realAudit.run, auditConfig));
  expectedInvocation.will.apply(expectedInvocation, willArgs);
  axs.Audit = audit.proxy();
  axs.Audit.createReport = realAudit.createReport;
  axs.Audit.auditResults = realAudit.auditResults;
  axs.Audit.accessibilityErrorMessage = realAudit.accessibilityErrorMessage;
}
function expectAuditWillRun ( times , auditConfig ) { var audit = createMockAudit ( ) ; var realAudit = axs . Audit ; var expectedInvocation = audit . expects ( exactly ( times ) ) . run ( ANYTHING ) ; var willArgs = [ ] ; for ( var i = 0 ; i < times ; i ++ ) willArgs . push ( callFunction ( realAudit . run , auditConfig ) ) ; expectedInvocation . will . apply ( expectedInvocation , willArgs ) ; axs . Audit = audit . proxy ( ) ; axs . Audit . createReport = realAudit . createReport ; axs . Audit . auditResults = realAudit . auditResults ; axs . Audit . accessibilityErrorMessage = realAudit . accessibilityErrorMessage ; }
Creates an expectation that the global axs.Audit object will have its run()
 method called |times| times.
Creates an expectation that the global axs . Audit object will have its run () method called |times| times .