Skip to content

Commit

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

Bump axe-core from 4.9.0 to 4.9.1
  • Loading branch information
acelaya authored May 13, 2024
2 parents 2d6ffcb + 0258121 commit ebe1b01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@typescript-eslint/parser": "^7.6.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.6.0",
"axe-core": "4.9.0",
"axe-core": "4.9.1",
"eslint": "^8.57.0",
"jsdom": "^24.0.0",
"sass": "^1.77.1",
Expand Down
4 changes: 2 additions & 2 deletions test/__helpers__/accessibility.ts
Original file line number Diff line number Diff line change
@@ -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 ebe1b01

Please sign in to comment.