-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(getStandards): Read standards from utils (#2903)
* fix(getStandards): Read standards from utils * Update lib/core/utils/get-standards.js Co-authored-by: Steven Lambert <[email protected]> Co-authored-by: Steven Lambert <[email protected]>
- Loading branch information
1 parent
b1a7387
commit f1a0368
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import standards from '../../standards' | ||
import clone from './clone' | ||
|
||
export default function getStandards() { | ||
return clone(standards); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
describe('axe.utils.getStandards', function () { | ||
it('returns the standards object', function () { | ||
var standards = axe.utils.getStandards(); | ||
assert.hasAnyKeys(standards, [ | ||
'ariaAttrs', | ||
'ariaRoles', | ||
'htmlElms', | ||
'cssColors' | ||
]); | ||
}); | ||
}); |