Skip to content

Commit

Permalink
chore(ace): fix heading order map rule
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Sep 27, 2023
1 parent 5e69dc6 commit c1c90a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion kayle/lib/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
const IA_5 = "Principle4.Guideline4_1.4_1_2.H91.A.EmptyNoId";
const A_6 = "heading-order";
const H_6 = "Principle1.Guideline13.131A.G141"; // HeadingOrder map
const IA_6 = "Principle4.Guideline1_3.1_3_1_A.G141";
const IA_6 = "Principle1.Guideline1_3.1_3_1_A.G141";

// oneshot map
const scoreMap = new Map<string, [number, string, string]>([
Expand Down
2 changes: 1 addition & 1 deletion kayle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kayle",
"version": "0.7.2",
"version": "0.7.3",
"description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.",
"main": "./build/index.js",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions kayle/tests/basic-ace.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from "assert";
import puppeteer from "puppeteer";
import { kayle } from "kayle";
import { Standard, kayle } from "kayle";
import { drakeMock } from "./mocks/html-mock";
import { performance } from "perf_hooks";

Expand All @@ -16,7 +16,7 @@ import { performance } from "perf_hooks";
browser,
runners: ["ace"],
includeWarnings: true,
standard: "WCAG2AA",
standard: Standard.WCAG2AA,
html: drakeMock,
origin: "https://www.drake.com", // origin is the fake url in place of the raw content
});
Expand All @@ -31,7 +31,7 @@ import { performance } from "perf_hooks";
assert(Array.isArray(issues));
assert(meta.errorCount >= 55);
assert(meta.warningCount === 42);
assert(meta.accessScore >= 40);
assert(meta.accessScore >= 30);

assert(typeof pageUrl === "string");
assert(typeof documentTitle === "string");
Expand Down
2 changes: 1 addition & 1 deletion kayle/tests/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { performance } from "perf_hooks";
assert(Array.isArray(issues));
assert(meta.errorCount === 47);
assert(meta.warningCount === 43);
assert(meta.accessScore === 50);
assert(meta.accessScore === 30);

assert(typeof pageUrl === "string");
assert(typeof documentTitle === "string");
Expand Down

0 comments on commit c1c90a9

Please sign in to comment.