forked from dequelabs/axe-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
35 lines (27 loc) · 863 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
describe('axe.constants', function () {
'use strict';
it('should create an object', function () {
assert.isObject(axe.constants);
});
it('should have a results array', function () {
assert.isArray(axe.constants.results);
});
it('should have PASS', function () {
assert.equal(axe.constants.PASS, 'passed');
});
it('should have FAIL', function () {
assert.equal(axe.constants.FAIL, 'failed');
});
it('should have NA', function () {
assert.equal(axe.constants.NA, 'inapplicable');
});
it('should have CANTTELL', function () {
assert.equal(axe.constants.CANTTELL, 'cantTell');
});
it('should have priorities for results', function () {
assert.equal(axe.constants.NA_PRIO, 0);
});
it('should have groups for results', function () {
assert.equal(axe.constants.FAIL_GROUP, 'violations');
});
});