Merge pull request #3332 from storybooks/upgrade-axe

Migrate to axe-core@3.0.0
This commit is contained in:
Filipp Riabchun 2018-04-02 16:14:28 +03:00 committed by GitHub
commit eb4bc2ab5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@
},
"dependencies": {
"@storybook/components": "4.0.0-alpha.1",
"axe-core": "^2.6.1",
"axe-core": "^3.0.0",
"babel-runtime": "^6.26.0",
"glamor": "^2.20.40",
"glamorous": "^4.12.1",

View File

@ -41,7 +41,7 @@ class WrapStory extends Component {
if (wrapper !== null) {
axe.reset();
axe.configure(axeOptions);
axe.a11yCheck(wrapper, {}, results => {
axe.run(wrapper, {}, results => {
channel.emit('addon:a11y:check', results);
});
}

View File

@ -1067,9 +1067,9 @@ aws4@^1.2.1, aws4@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"
axe-core@^2.6.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-2.6.1.tgz#28772c4f76966d373acda35b9a409299dc00d1b5"
axe-core@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-3.0.0.tgz#4cc656167ffe46a980c19a1b7b5e744820616737"
axios@^0.15.3:
version "0.15.3"