mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-22 17:10:26 +03:00
Merge pull request #1184 from shlinkio/dependabot/npm_and_yarn/axe-core-4.9.1
Bump axe-core from 4.9.0 to 4.9.1
This commit is contained in:
commit
281c148e18
3 changed files with 10 additions and 10 deletions
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -54,7 +54,7 @@
|
|||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"@vitest/coverage-v8": "^1.6.0",
|
||||
"adm-zip": "^0.5.12",
|
||||
"axe-core": "^4.9.0",
|
||||
"axe-core": "^4.9.1",
|
||||
"chalk": "^5.3.0",
|
||||
"eslint": "^8.57.0",
|
||||
"history": "^5.3.0",
|
||||
|
@ -4511,9 +4511,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/axe-core": {
|
||||
"version": "4.9.0",
|
||||
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.0.tgz",
|
||||
"integrity": "sha512-H5orY+M2Fr56DWmMFpMrq5Ge93qjNdPVqzBv5gWK3aD1OvjBEJlEzxf09z93dGVQeI0LiW+aCMIx1QtShC/zUw==",
|
||||
"version": "4.9.1",
|
||||
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.1.tgz",
|
||||
"integrity": "sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
|
@ -14151,9 +14151,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"axe-core": {
|
||||
"version": "4.9.0",
|
||||
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.0.tgz",
|
||||
"integrity": "sha512-H5orY+M2Fr56DWmMFpMrq5Ge93qjNdPVqzBv5gWK3aD1OvjBEJlEzxf09z93dGVQeI0LiW+aCMIx1QtShC/zUw==",
|
||||
"version": "4.9.1",
|
||||
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.1.tgz",
|
||||
"integrity": "sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw==",
|
||||
"dev": true
|
||||
},
|
||||
"axobject-query": {
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"@vitest/coverage-v8": "^1.6.0",
|
||||
"adm-zip": "^0.5.12",
|
||||
"axe-core": "^4.9.0",
|
||||
"axe-core": "^4.9.1",
|
||||
"chalk": "^5.3.0",
|
||||
"eslint": "^8.57.0",
|
||||
"history": "^5.3.0",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { run } from 'axe-core';
|
||||
import axe from 'axe-core';
|
||||
|
||||
type ContainerWrapper = { container: HTMLElement };
|
||||
|
||||
|
@ -6,7 +6,7 @@ type AccessibilityTestSubject = ContainerWrapper | Promise<ContainerWrapper>;
|
|||
|
||||
export const checkAccessibility = async (subject: AccessibilityTestSubject) => {
|
||||
const { container } = await subject;
|
||||
const { violations } = await run(container);
|
||||
const { violations } = await axe.run(container);
|
||||
|
||||
expect(violations).toStrictEqual([]);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue