Skip to content

Commit

Permalink
chore(apca): swap axe-apca dep with apca-check
Browse files Browse the repository at this point in the history
  • Loading branch information
giamir committed Oct 23, 2023
1 parent 503b27e commit 370dfc2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions lib/test/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { screen } from "@testing-library/dom";
import { visualDiff } from "@web/test-runner-visual-regression";
import type { TemplateResult } from "lit-html";
import axe from "axe-core";
import registerAxeAPCA from "axe-apca";
import registerAPCACheck from "apca-check";

const customConformanceThresholdFn = (fontSize: string): number | null => {
return parseFloat(fontSize) >= 32 ? 45 : 60;
};

registerAxeAPCA("custom", customConformanceThresholdFn);
registerAPCACheck("custom", customConformanceThresholdFn);

const colorThemes = ["dark", "light"];
const baseThemes = ["", "highcontrast"];
Expand Down
44 changes: 22 additions & 22 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 @@ -61,7 +61,7 @@
"@web/test-runner": "^0.17.1",
"@web/test-runner-playwright": "^0.10.1",
"@web/test-runner-visual-regression": "^0.8.2",
"axe-apca": "^0.0.3",
"apca-check": "^0.1.0",
"concurrently": "^8.2.1",
"css-loader": "^6.8.1",
"cssbeautify": "^0.3.1",
Expand Down

0 comments on commit 370dfc2

Please sign in to comment.