UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

24 lines (21 loc) 552 B
describe('aria-hidden on body test ' + window.location.pathname, function () { 'use strict'; var results; before(function (done) { axe.run({ runOnly: { type: 'rule', values: ['aria-hidden-body'] } }, function (err, r) { assert.isNull(err); results = r; done(); }); }); describe('violations', function () { it('should find none', function () { assert.lengthOf(results.violations, 0); }); }); describe('passes', function () { it('should find 1', function () { assert.lengthOf(results.passes[0].nodes, 1); }); }); });