How to use the ember-a11y-testing/utils/concurrent-axe.run function in ember-a11y-testing

To help you get started, we’ve selected a few ember-a11y-testing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-a11y / ember-a11y-testing / addon / instance-initializers / axe-component.js View on Github external
audit() {
      if (this.get('tagName') !== '') {
        concurrentAxe.run(this.element, this.axeOptions, (error, results) => {
          if (this.get('isDestroyed')) {
            return;
          }

          if (error) {
            throw error;
          }

          const violations = results.violations;
          const violationClasses = this.get('violationClasses') || [];
          const visualNoiseLevel = this.get('visualNoiseLevel');

          let violation;
          let nodes;
          let nodeData;
          let nodeElem;