Skip to content

Commit

Permalink
Merge pull request #1184 from shlinkio/dependabot/npm_and_yarn/axe-co…
Browse files Browse the repository at this point in the history
…re-4.9.1

Bump axe-core from 4.9.0 to 4.9.1
  • Loading branch information
acelaya committed May 13, 2024
2 parents 66b3119 + e350412 commit 281c148
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/__helpers__/accessibility.ts
@@ -1,12 +1,12 @@
import { run } from 'axe-core';
import axe from 'axe-core';

type ContainerWrapper = { container: HTMLElement };

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([]);
};

0 comments on commit 281c148

Please sign in to comment.