@axe-core/watcher 3.14.3-rc.50527b34 → 3.15.0-rc.d3d4127f
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Controller.js +0 -1
- package/dist/Controller.js.map +1 -1
- package/dist/EventForwarder.js +0 -7
- package/dist/EventForwarder.js.map +1 -1
- package/dist/createDebugger.js +0 -15
- package/dist/createDebugger.js.map +1 -1
- package/dist/cypress.js +0 -45
- package/dist/cypress.js.map +1 -1
- package/dist/cypressCommands.js +2 -68
- package/dist/cypressCommands.js.map +1 -1
- package/dist/git.js +0 -16
- package/dist/git.js.map +1 -1
- package/dist/playwright.js +1 -13
- package/dist/playwright.js.map +1 -1
- package/dist/playwrightTest.js +0 -15
- package/dist/playwrightTest.js.map +1 -1
- package/dist/playwrightWrapping.js +0 -11
- package/dist/playwrightWrapping.js.map +1 -1
- package/dist/puppeteer.js +1 -13
- package/dist/puppeteer.js.map +1 -1
- package/dist/puppeteerWrapping.js +2 -13
- package/dist/puppeteerWrapping.js.map +1 -1
- package/dist/sendResultsToServer.js +0 -15
- package/dist/sendResultsToServer.js.map +1 -1
- package/dist/utils/constants.js +0 -3
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/initializeSession.js +0 -7
- package/dist/utils/initializeSession.js.map +1 -1
- package/dist/utils/initializeSession.test.js +0 -6
- package/dist/utils/initializeSession.test.js.map +1 -1
- package/dist/utils/mergeChromeArgs.js +0 -40
- package/dist/utils/mergeChromeArgs.js.map +1 -1
- package/dist/utils/mergeChromeArgs.test.js +0 -3
- package/dist/utils/mergeChromeArgs.test.js.map +1 -1
- package/dist/utils/proxyHandlers.js +0 -19
- package/dist/utils/proxyHandlers.js.map +1 -1
- package/dist/utils/proxyHandlers.test.js +0 -1
- package/dist/utils/proxyHandlers.test.js.map +1 -1
- package/dist/utils/readVariables.js +0 -4
- package/dist/utils/readVariables.js.map +1 -1
- package/dist/utils/updateAutoAnalyze.js +0 -5
- package/dist/utils/updateAutoAnalyze.js.map +1 -1
- package/dist/utils/validateAxeRunContext.js +0 -16
- package/dist/utils/validateAxeRunContext.js.map +1 -1
- package/dist/utils/validateAxeRunContext.test.js +0 -3
- package/dist/utils/validateAxeRunContext.test.js.map +1 -1
- package/dist/utils/validateAxeRunOptions.js +0 -51
- package/dist/utils/validateAxeRunOptions.js.map +1 -1
- package/dist/utils/validateAxeRunOptions.test.js +0 -15
- package/dist/utils/validateAxeRunOptions.test.js.map +1 -1
- package/dist/utils/writeExtensionManifest.js +0 -1
- package/dist/utils/writeExtensionManifest.js.map +1 -1
- package/dist/utils/writeVariables.js +1 -14
- package/dist/utils/writeVariables.js.map +1 -1
- package/dist/utils/writeVariables.test.js +0 -1
- package/dist/utils/writeVariables.test.js.map +1 -1
- package/dist/wdio.d.ts +5 -3
- package/dist/wdio.js +0 -20
- package/dist/wdio.js.map +1 -1
- package/dist/webdriver.js +1 -12
- package/dist/webdriver.js.map +1 -1
- package/extension/background.js +1 -1
- package/extension/content.js +1 -1
- package/package.json +4 -4
@@ -1,36 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const constants_1 = require("./constants");
|
4
|
-
// Extension flags for Chrome
|
5
4
|
const DISABLE_OTHER_EXTENSIONS_FLAG = '--disable-extensions-except';
|
6
5
|
const LOAD_EXTENSION_FLAG = '--load-extension';
|
7
|
-
/**
|
8
|
-
* A helper function to merge the user provided arguments with the extension args
|
9
|
-
* for Chrome.
|
10
|
-
*
|
11
|
-
* @param args The user provided arguments to merge with the extension args.
|
12
|
-
* @param disableOtherExtensions Whether to disable other extensions.
|
13
|
-
* @returns The merged arguments to pass to Chrome.
|
14
|
-
*/
|
15
6
|
function mergeChromeArgs(userArgs, { disableOtherExtensions }) {
|
16
|
-
/**
|
17
|
-
* It's possible for the user to do:
|
18
|
-
* `--load-extension=/path/A, --load-extension=/path/B`
|
19
|
-
*
|
20
|
-
* We only want to append our extension path onto
|
21
|
-
* the last occurrence of `--load-extension`.
|
22
|
-
*/
|
23
7
|
let loadExtensionFlagIndex = -1;
|
24
8
|
let disableExtensionsFlagIndex = -1;
|
25
|
-
/**
|
26
|
-
* We do not want to modify the user's args directly.
|
27
|
-
* We only want to modify and merge the extension args
|
28
|
-
* with the user's args if they exist.
|
29
|
-
*
|
30
|
-
* It's possible for some integrations like WebDriverJS
|
31
|
-
* to optionally include the `--` prefix in the flag,
|
32
|
-
* when we check for the extension flag we need to account for this.
|
33
|
-
*/
|
34
9
|
for (const [index, arg] of userArgs.entries()) {
|
35
10
|
if (arg.includes(LOAD_EXTENSION_FLAG) || arg.includes('load-extension')) {
|
36
11
|
loadExtensionFlagIndex = index;
|
@@ -40,29 +15,14 @@ function mergeChromeArgs(userArgs, { disableOtherExtensions }) {
|
|
40
15
|
disableExtensionsFlagIndex = index;
|
41
16
|
}
|
42
17
|
}
|
43
|
-
// The user has provided a `--load-extension` flag
|
44
|
-
// We want to append our extension path to the list of extensions.
|
45
18
|
if (loadExtensionFlagIndex !== -1) {
|
46
19
|
userArgs[loadExtensionFlagIndex] += `,${constants_1.PATH_TO_EXTENSION}`;
|
47
20
|
}
|
48
21
|
else {
|
49
22
|
userArgs.push(`${LOAD_EXTENSION_FLAG}=${constants_1.PATH_TO_EXTENSION}`);
|
50
23
|
}
|
51
|
-
// If the user has already disabled other extensions, we want to append
|
52
|
-
// our extension path to the list of disabled extensions.
|
53
24
|
if (disableExtensionsFlagIndex !== -1) {
|
54
25
|
userArgs[disableExtensionsFlagIndex] += `,${constants_1.PATH_TO_EXTENSION}`;
|
55
|
-
/**
|
56
|
-
* Puppeteer and Playwright by default include `--disable-extensions` which
|
57
|
-
* disables all extensions. We need to explicitly enable the axe-core/watcher
|
58
|
-
* extension.
|
59
|
-
*
|
60
|
-
* @see https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md#sources
|
61
|
-
*
|
62
|
-
* Cypress does not include `--disable-extensions` by default but does include
|
63
|
-
* their own extension outside of `--load-extension` so we do not able to disable it
|
64
|
-
* when injecting the axe-core/watcher extension.
|
65
|
-
*/
|
66
26
|
}
|
67
27
|
else if (disableOtherExtensions) {
|
68
28
|
userArgs.push(`${DISABLE_OTHER_EXTENSIONS_FLAG}=${constants_1.PATH_TO_EXTENSION}`);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mergeChromeArgs.js","sourceRoot":"","sources":["../../src/utils/mergeChromeArgs.ts"],"names":[],"mappings":";;AAAA,2CAA+C;
|
1
|
+
{"version":3,"file":"mergeChromeArgs.js","sourceRoot":"","sources":["../../src/utils/mergeChromeArgs.ts"],"names":[],"mappings":";;AAAA,2CAA+C;AAG/C,MAAM,6BAA6B,GAAG,6BAA6B,CAAA;AACnE,MAAM,mBAAmB,GAAG,kBAAkB,CAAA;AAW9C,SAAS,eAAe,CACtB,QAAkB,EAClB,EACE,sBAAsB,EAGvB;IASD,IAAI,sBAAsB,GAAG,CAAC,CAAC,CAAA;IAC/B,IAAI,0BAA0B,GAAG,CAAC,CAAC,CAAA;IAWnC,KAAK,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC;QAC9C,IAAI,GAAG,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxE,sBAAsB,GAAG,KAAK,CAAA;QAChC,CAAC;QAED,IACE,GAAG,CAAC,QAAQ,CAAC,6BAA6B,CAAC;YAC3C,GAAG,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EACzC,CAAC;YACD,0BAA0B,GAAG,KAAK,CAAA;QACpC,CAAC;IACH,CAAC;IAID,IAAI,sBAAsB,KAAK,CAAC,CAAC,EAAE,CAAC;QAClC,QAAQ,CAAC,sBAAsB,CAAC,IAAI,IAAI,6BAAiB,EAAE,CAAA;IAC7D,CAAC;SAAM,CAAC;QACN,QAAQ,CAAC,IAAI,CAAC,GAAG,mBAAmB,IAAI,6BAAiB,EAAE,CAAC,CAAA;IAC9D,CAAC;IAID,IAAI,0BAA0B,KAAK,CAAC,CAAC,EAAE,CAAC;QACtC,QAAQ,CAAC,0BAA0B,CAAC,IAAI,IAAI,6BAAiB,EAAE,CAAA;IAajE,CAAC;SAAM,IAAI,sBAAsB,EAAE,CAAC;QAClC,QAAQ,CAAC,IAAI,CAAC,GAAG,6BAA6B,IAAI,6BAAiB,EAAE,CAAC,CAAA;IACxE,CAAC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,kBAAe,eAAe,CAAA"}
|
@@ -137,7 +137,6 @@ describe('mergeChromeArgs', () => {
|
|
137
137
|
chai_1.assert.lengthOf(args, 4);
|
138
138
|
chai_1.assert.equal(foo, 'foo=bar');
|
139
139
|
chai_1.assert.equal(loadExtension1, 'load-extension=baz');
|
140
|
-
// We append onto the last occurrence of the flag
|
141
140
|
chai_1.assert.equal(loadExtension2, `load-extension=qux,${constants_1.PATH_TO_EXTENSION}`);
|
142
141
|
chai_1.assert.equal(disableExtensionsExcept, `--disable-extensions-except=${constants_1.PATH_TO_EXTENSION}`);
|
143
142
|
});
|
@@ -183,7 +182,6 @@ describe('mergeChromeArgs', () => {
|
|
183
182
|
chai_1.assert.lengthOf(args, 3);
|
184
183
|
chai_1.assert.equal(foo, 'foo=bar');
|
185
184
|
chai_1.assert.equal(loadExtension1, 'load-extension=baz');
|
186
|
-
// We append onto the last occurrence of the flag
|
187
185
|
chai_1.assert.equal(loadExtension2, `load-extension=qux,${constants_1.PATH_TO_EXTENSION}`);
|
188
186
|
});
|
189
187
|
describe('and some values are comma-separated', () => {
|
@@ -230,7 +228,6 @@ describe('mergeChromeArgs', () => {
|
|
230
228
|
chai_1.assert.lengthOf(args, 4);
|
231
229
|
chai_1.assert.equal(foo, 'foo=bar');
|
232
230
|
chai_1.assert.equal(disableExtensionsExcept1, 'disable-extensions-except=baz');
|
233
|
-
// We append onto the last occurrence of the flag
|
234
231
|
chai_1.assert.equal(disableExtensionsExcept2, `--disable-extensions-except=qux,${constants_1.PATH_TO_EXTENSION}`);
|
235
232
|
chai_1.assert.equal(loadExtension, `--load-extension=${constants_1.PATH_TO_EXTENSION}`);
|
236
233
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mergeChromeArgs.test.js","sourceRoot":"","sources":["../../src/utils/mergeChromeArgs.test.ts"],"names":[],"mappings":";;;;;AAAA,iBAAc;AACd,+BAA6B;AAC7B,2CAA+C;AAC/C,wEAA+C;AAE/C,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,QAAQ,CAAC,0CAA0C,EAAE,GAAG,EAAE;QACxD,QAAQ,CAAC,uCAAuC,EAAE,GAAG,EAAE;YACrD,EAAE,CAAC,yEAAyE,EAAE,GAAG,EAAE;gBACjF,MAAM,IAAI,GAAG,IAAA,yBAAe,EAAC,EAAE,EAAE;oBAC/B,sBAAsB,EAAE,IAAI;iBAC7B,CAAC,CAAA;gBAEF,MAAM,CAAC,aAAa,EAAE,uBAAuB,CAAC,GAAG,IAAI,CAAA;gBAErD,aAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBACxB,aAAM,CAAC,KAAK,CAAC,aAAa,EAAE,oBAAoB,6BAAiB,EAAE,CAAC,CAAA;gBACpE,aAAM,CAAC,KAAK,CACV,uBAAuB,EACvB,+BAA+B,6BAAiB,EAAE,CACnD,CAAA;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,uCAAuC,EAAE,GAAG,EAAE;YACrD,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;gBAClD,MAAM,IAAI,GAAG,IAAA,yBAAe,EAAC,EAAE,EAAE;oBAC/B,sBAAsB,EAAE,KAAK;iBAC9B,CAAC,CAAA;gBAEF,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAA;gBAE5B,aAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBACxB,aAAM,CAAC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ACxB,+BAA+B,CAChC,CAAA;4BAED,aAAM,CAAC,KAAK,CACV,wBAAwB,EACxB,mCAAmC,6BAAiB,EAAE,CACvD,CAAA;4BACD,aAAM,CAAC,KAAK,CACV,aAAa,EACb,oBAAoB,6BAAiB,EAAE,CACxC,CAAA;wBACH,CAAC,CAAC,CAAA;wBAEF,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;4BACnD,EAAE,CAAC,wEAAwE,EAAE,GAAG,EAAE;gCAChF,MAAM,IAAI,GAAG,IAAA,yBAAe,EAC1B;oCACE,SAAS;oCACT,aAAa;oCACb,wCAAwC;iCACzC,EACD;oCACE,sBAAsB,EAAE,KAAK;iCAC9B,CACF,CAAA;gCAED,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,uBAAuB,EAAE,aAAa,CAAC,GACxD,IAAI,CAAA;gCAEN,aAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gCACxB,aAAM,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;gCAC7B,aAAM,CAAC,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;gCACjC,aAAM,CAAC,KAAK,CACV,uBAAuB,EACvB,0CAA0C,6BAAiB,EAAE,CAC9D,CAAA;gCACD,aAAM,CAAC,KAAK,CACV,aAAa,EACb,oBAAoB,6BAAiB,EAAE,CACxC,CAAA;4BACH,CAAC,CAAC,CAAA;wBACJ,CAAC,CAAC,CAAA;oBACJ,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.proxiedGetWithoutAnalyze = exports.proxiedGetFuncWithAnalyze = exports.markAsWrapped = exports.isWrapped = void 0;
|
4
4
|
const kWrapped = Symbol('axe watcher wrapped');
|
5
|
-
/** Is the given object wrapped? */
|
6
5
|
const isWrapped = (o) => {
|
7
6
|
if (!o) {
|
8
7
|
return false;
|
@@ -10,7 +9,6 @@ const isWrapped = (o) => {
|
|
10
9
|
return o[kWrapped] === true;
|
11
10
|
};
|
12
11
|
exports.isWrapped = isWrapped;
|
13
|
-
/** Mark the given object as wrapped. */
|
14
12
|
const markAsWrapped = (o) => {
|
15
13
|
Object.defineProperty(o, kWrapped, {
|
16
14
|
configurable: false,
|
@@ -24,9 +22,6 @@ const proxiedGetFuncWithAnalyze = (target, prop, controller) => async (...args)
|
|
24
22
|
__Method: prop,
|
25
23
|
__UserRequestedAnalyze: false
|
26
24
|
});
|
27
|
-
// We use .call(target, ...) for the same reason that
|
28
|
-
// proxiedGetWithoutAnalyze uses .bind(target), see below.
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
30
25
|
const result = await target[prop].call(target, ...args);
|
31
26
|
return result;
|
32
27
|
};
|
@@ -34,22 +29,8 @@ exports.proxiedGetFuncWithAnalyze = proxiedGetFuncWithAnalyze;
|
|
34
29
|
const proxiedGetWithoutAnalyze = (target, prop) => {
|
35
30
|
const original = target[prop];
|
36
31
|
if (typeof original === 'function') {
|
37
|
-
// Override the proxied function with the original function bound to the target.
|
38
|
-
// This allows the "this" context to mimic the original object, rather than the proxy.
|
39
|
-
// Doing it this way still satisfies if:
|
40
|
-
// 1. The original function uses a private field of the target,
|
41
|
-
// it will throw an error if we try to call it in the context of
|
42
|
-
// a proxy rather than the original object. See #1052.
|
43
|
-
// 2. The original function is implemented in terms of a different
|
44
|
-
// method which we *do* wrap, we *don't* want to hook that inner
|
45
|
-
// call with an analyze(); we want to be intentional about the
|
46
|
-
// specific user-facing methods that we hook.
|
47
32
|
const originalFnName = original.name;
|
48
33
|
const boundNameOverride = {
|
49
|
-
// ends up identical to the original; JavaScript names anonymous functions
|
50
|
-
// in objects after the key they're bound to.
|
51
|
-
// @see https://github.com/dequelabs/jazzband/issues/1107
|
52
|
-
// @see https://stackoverflow.com/a/41854075
|
53
34
|
[originalFnName]: function (...args) {
|
54
35
|
return original.call(target, ...args);
|
55
36
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"proxyHandlers.js","sourceRoot":"","sources":["../../src/utils/proxyHandlers.ts"],"names":[],"mappings":";;;AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"proxyHandlers.js","sourceRoot":"","sources":["../../src/utils/proxyHandlers.ts"],"names":[],"mappings":";;;AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAOvC,MAAM,SAAS,GAAG,CAAI,CAA4B,EAAW,EAAE;IACpE,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;AAC7B,CAAC,CAAA;AALY,QAAA,SAAS,aAKrB;AAGM,MAAM,aAAa,GAAG,CAAC,CAAU,EAAQ,EAAE;IAChD,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE;QACjC,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,IAAI;KACZ,CAAC,CAAA;AACJ,CAAC,CAAA;AANY,QAAA,aAAa,iBAMzB;AAEM,MAAM,yBAAyB,GACpC,CAAI,MAAS,EAAE,IAAa,EAAE,UAAsB,EAAE,EAAE,CACxD,KAAK,EAAE,GAAG,IAAe,EAAoB,EAAE;IAC7C,MAAM,UAAU,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,IAAc;QACxB,sBAAsB,EAAE,KAAK;KAC9B,CAAC,CAAA;IAIF,MAAM,MAAM,GAAG,MAAO,MAAM,CAAC,IAAI,CAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;IACrE,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAZU,QAAA,yBAAyB,6BAYnC;AAEI,MAAM,wBAAwB,GAAG,CACtC,MAAS,EACT,IAAa,EACJ,EAAE;IACX,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;IAE7B,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;QAWnC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAA;QACpC,MAAM,iBAAiB,GAAG;YAKxB,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,IAAe;gBAC5C,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;YACvC,CAAC;SACF,CAAA;QAED,OAAO,iBAAiB,CAAC,cAAc,CAAC,CAAA;IAC1C,CAAC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAhCY,QAAA,wBAAwB,4BAgCpC"}
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("mocha");
|
4
4
|
const chai_1 = require("chai");
|
5
5
|
const proxyHandlers_1 = require("./proxyHandlers");
|
6
|
-
// Regression test for https://github.com/dequelabs/jazzband/issues/1107
|
7
6
|
describe('proxiedGetWithoutAnalyze', () => {
|
8
7
|
it('should ensure proxied function names match originals', () => {
|
9
8
|
class Original {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"proxyHandlers.test.js","sourceRoot":"","sources":["../../src/utils/proxyHandlers.test.ts"],"names":[],"mappings":";;AAAA,iBAAc;AACd,+BAA6B;AAC7B,mDAA0D;
|
1
|
+
{"version":3,"file":"proxyHandlers.test.js","sourceRoot":"","sources":["../../src/utils/proxyHandlers.test.ts"],"names":[],"mappings":";;AAAA,iBAAc;AACd,+BAA6B;AAC7B,mDAA0D;AAG1D,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,MAAM,QAAQ;YAAd;gBACE,YAAO,GAAG,GAAG,EAAE,CAAC,OAAO,CAAA;YAIzB,CAAC;YAHC,MAAM;gBACJ,OAAO,OAAO,CAAA;YAChB,CAAC;SACF;QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;QAC/B,MAAM,OAAO,GAAG,IAAI,KAAK,CAAC,QAAQ,EAAE;YAClC,GAAG,CAAC,MAAM,EAAE,IAAoB;gBAC9B,OAAO,IAAA,wCAAwB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YAC/C,CAAC;SACF,CAAC,CAAA;QACF,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QACzD,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QACvD,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IACnE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -5,10 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
const fs_1 = __importDefault(require("fs"));
|
7
7
|
const constants_1 = require("./constants");
|
8
|
-
/**
|
9
|
-
* Read the `variables` JSON file from the @axe-core/watcher extension.
|
10
|
-
* @returns The variables stored in the extension variables file.
|
11
|
-
*/
|
12
8
|
function readVariables() {
|
13
9
|
const fileContents = fs_1.default.readFileSync(constants_1.PATH_TO_EXTENSION_VARIABLES, 'utf-8');
|
14
10
|
return JSON.parse(fileContents);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"readVariables.js","sourceRoot":"","sources":["../../src/utils/readVariables.ts"],"names":[],"mappings":";;;;;AAAA,4CAAmB;AACnB,2CAAyD;
|
1
|
+
{"version":3,"file":"readVariables.js","sourceRoot":"","sources":["../../src/utils/readVariables.ts"],"names":[],"mappings":";;;;;AAAA,4CAAmB;AACnB,2CAAyD;AAQzD,SAAS,aAAa;IACpB,MAAM,YAAY,GAAG,YAAE,CAAC,YAAY,CAAC,uCAA2B,EAAE,OAAO,CAAC,CAAA;IAC1E,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;AACjC,CAAC;AAED,kBAAe,aAAa,CAAA"}
|
@@ -6,11 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const fs_1 = __importDefault(require("fs"));
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const readVariables_1 = __importDefault(require("./readVariables"));
|
9
|
-
/**
|
10
|
-
* Update the `auto_analyze` variable in the @axe-core/watcher extension variables file.
|
11
|
-
*
|
12
|
-
* @param val The new value for the auto_analyze variable.
|
13
|
-
*/
|
14
9
|
function updateAutoAnalyze(val) {
|
15
10
|
const variables = (0, readVariables_1.default)();
|
16
11
|
variables.auto_analyze = val;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateAutoAnalyze.js","sourceRoot":"","sources":["../../src/utils/updateAutoAnalyze.ts"],"names":[],"mappings":";;;;;AAAA,4CAAmB;AACnB,2CAAyD;AACzD,oEAA2C;
|
1
|
+
{"version":3,"file":"updateAutoAnalyze.js","sourceRoot":"","sources":["../../src/utils/updateAutoAnalyze.ts"],"names":[],"mappings":";;;;;AAAA,4CAAmB;AACnB,2CAAyD;AACzD,oEAA2C;AAQ3C,SAAS,iBAAiB,CAAC,GAAY;IACrC,MAAM,SAAS,GAAG,IAAA,uBAAa,GAAE,CAAA;IACjC,SAAS,CAAC,YAAY,GAAG,GAAG,CAAA;IAC5B,YAAE,CAAC,aAAa,CAAC,uCAA2B,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAA;AAC1E,CAAC;AAED,kBAAe,iBAAiB,CAAA"}
|
@@ -15,44 +15,28 @@ function validateAxeRunContext(runContext = undefined) {
|
|
15
15
|
`);
|
16
16
|
}
|
17
17
|
}
|
18
|
-
/**
|
19
|
-
* Validates the context object for the `runContext` parameter of the `axe.run` method.
|
20
|
-
* Borrowed from axe-core's original implementation.
|
21
|
-
*
|
22
|
-
* @see https://github.com/dequelabs/axe-core/blob/0577a74fab385a590b31c9118f3da7ad55051097/lib/core/base/context/normalize-context.js#L92
|
23
|
-
*
|
24
|
-
* Removed `window.node` check
|
25
|
-
*
|
26
|
-
* @param contextSpec - The context object to validate
|
27
|
-
* @returns `true` if the context object is valid, `false` otherwise
|
28
|
-
*/
|
29
18
|
function isContextObject(contextSpec) {
|
30
19
|
return ['include', 'exclude'].some(prop => objectHasOwn(contextSpec, prop) &&
|
31
20
|
isContextProp(contextSpec[prop]));
|
32
21
|
}
|
33
|
-
//@see https://github.com/dequelabs/axe-core/blob/0577a74fab385a590b31c9118f3da7ad55051097/lib/core/base/context/normalize-context.js#L98
|
34
22
|
function isContextProp(contextList) {
|
35
23
|
return (typeof contextList === 'string' ||
|
36
24
|
isLabelledFramesSelector(contextList) ||
|
37
25
|
isLabelledShadowDomSelector(contextList) ||
|
38
26
|
isArrayLike(contextList));
|
39
27
|
}
|
40
|
-
// @see https://github.com/dequelabs/axe-core/blob/0577a74fab385a590b31c9118f3da7ad55051097/lib/core/base/context/normalize-context.js#L178-L184
|
41
28
|
function objectHasOwn(obj, prop) {
|
42
29
|
if (!obj || typeof obj !== 'object') {
|
43
30
|
return false;
|
44
31
|
}
|
45
32
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
46
33
|
}
|
47
|
-
//@see https://github.com/dequelabs/axe-core/blob/0577a74fab385a590b31c9118f3da7ad55051097/lib/core/base/context/normalize-context.js#L108
|
48
34
|
function isLabelledFramesSelector(selector) {
|
49
35
|
return objectHasOwn(selector, 'fromFrames');
|
50
36
|
}
|
51
|
-
//@see https://github.com/dequelabs/axe-core/blob/0577a74fab385a590b31c9118f3da7ad55051097/lib/core/base/context/normalize-context.js#L112
|
52
37
|
function isLabelledShadowDomSelector(selector) {
|
53
38
|
return objectHasOwn(selector, 'fromShadowDom');
|
54
39
|
}
|
55
|
-
// @see https://github.com/dequelabs/axe-core/blob/0577a74fab385a590b31c9118f3da7ad55051097/lib/core/base/context/normalize-context.js#L160C1-L168C2
|
56
40
|
function isArrayLike(arr) {
|
57
41
|
return arr && typeof arr === 'object' && typeof arr.length === 'number';
|
58
42
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validateAxeRunContext.js","sourceRoot":"","sources":["../../src/utils/validateAxeRunContext.ts"],"names":[],"mappings":";;AAEA,sDAkBC;AAlBD,SAAgB,qBAAqB,CACnC,aAAyC,SAAS;IAElD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAM;IACR,CAAC;IAED,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACb;;;;;;OAMC,CACF,CAAA;IACH,CAAC;AACH,CAAC;
|
1
|
+
{"version":3,"file":"validateAxeRunContext.js","sourceRoot":"","sources":["../../src/utils/validateAxeRunContext.ts"],"names":[],"mappings":";;AAEA,sDAkBC;AAlBD,SAAgB,qBAAqB,CACnC,aAAyC,SAAS;IAElD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAM;IACR,CAAC;IAED,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACb;;;;;;OAMC,CACF,CAAA;IACH,CAAC;AACH,CAAC;AAaD,SAAS,eAAe,CAAC,WAA2B;IAClD,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,IAAI,CAChC,IAAI,CAAC,EAAE,CACL,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC;QAC/B,aAAa,CAAC,WAAW,CAAC,IAA4B,CAAC,CAAC,CAC3D,CAAA;AACH,CAAC;AAGD,SAAS,aAAa,CACpB,WAAiD;IAEjD,OAAO,CACL,OAAO,WAAW,KAAK,QAAQ;QAC/B,wBAAwB,CAAC,WAAW,CAAC;QACrC,2BAA2B,CAAC,WAAW,CAAC;QACxC,WAAW,CAAC,WAAW,CAAC,CACzB,CAAA;AACH,CAAC;AAGD,SAAS,YAAY,CAAC,GAAY,EAAE,IAAiB;IACnD,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QACpC,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;AACxD,CAAC;AAGD,SAAS,wBAAwB,CAAC,QAAiB;IACjD,OAAO,YAAY,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;AAC7C,CAAC;AAGD,SAAS,2BAA2B,CAAC,QAAiB;IACpD,OAAO,YAAY,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAA;AAChD,CAAC;AAGD,SAAS,WAAW,CAAC,GAAc;IACjC,OAAO,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAA;AACzE,CAAC"}
|
@@ -78,19 +78,16 @@ describe('validateAxeRunContext', () => {
|
|
78
78
|
describe('and does not have an `include` or `exclude` property', () => {
|
79
79
|
describe('and is not a string', () => {
|
80
80
|
it('throws an error', () => {
|
81
|
-
//@ts-expect-error - Testing invalid input
|
82
81
|
chai_1.assert.throws(() => (0, validateAxeRunContext_1.validateAxeRunContext)(1));
|
83
82
|
});
|
84
83
|
});
|
85
84
|
describe('and is not an array of strings', () => {
|
86
85
|
it('throws an error', () => {
|
87
|
-
//@ts-expect-error - Testing invalid input
|
88
86
|
chai_1.assert.throws(() => (0, validateAxeRunContext_1.validateAxeRunContext)([1, 2]));
|
89
87
|
});
|
90
88
|
});
|
91
89
|
describe('and does not have a `fromFrames` or `fromShadowDom` property', () => {
|
92
90
|
it('throws an error', () => {
|
93
|
-
//@ts-expect-error - Testing invalid input
|
94
91
|
chai_1.assert.throws(() => (0, validateAxeRunContext_1.validateAxeRunContext)({ a: 'a' }));
|
95
92
|
});
|
96
93
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validateAxeRunContext.test.js","sourceRoot":"","sources":["../../src/utils/validateAxeRunContext.test.ts"],"names":[],"mappings":";;AAAA,iBAAc;AACd,+BAA6B;AAC7B,mEAA+D;AAE/D,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;QAC/C,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;YACjC,aAAM,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAA,6CAAqB,GAAE,CAAC,CAAA;QACpD,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACzC,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;YAChD,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;gBACjC,aAAM,CAAC,YAAY,CAAC,GAAG,EAAE,CACvB,IAAA,6CAAqB,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAC/C,CAAA;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,6CAA6C,EAAE,GAAG,EAAE;YAC3D,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;gBACjC,aAAM,CAAC,YAAY,CAAC,GAAG,EAAE,CACvB,IAAA,6CAAqB,EAAC,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC,CAC/D,CAAA;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;YACjD,QAAQ,C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AG,EAAE,CAAC,CAAC,CAAA;gBACxD,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -8,13 +8,6 @@ const VALID_RUN_ONLY_TYPES = [
|
|
8
8
|
'tag',
|
9
9
|
'tags'
|
10
10
|
];
|
11
|
-
/**
|
12
|
-
* We only provide a subset of axe-core's RunOptions.
|
13
|
-
* We want to sanitize the user's input to ensure they are not providing
|
14
|
-
* any invalid properties that are outside of the subset we provide.
|
15
|
-
*
|
16
|
-
* @param runOptions The user's run options.
|
17
|
-
*/
|
18
11
|
function validateAxeRunOptions(runOptions = undefined) {
|
19
12
|
if (!runOptions) {
|
20
13
|
return;
|
@@ -43,29 +36,12 @@ function validateAxeRunOptions(runOptions = undefined) {
|
|
43
36
|
}
|
44
37
|
}
|
45
38
|
}
|
46
|
-
/** Helper functions */
|
47
|
-
/** Checks if the value provided is an object */
|
48
39
|
function isObject(value) {
|
49
40
|
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
50
41
|
}
|
51
|
-
/** Checks if the value provided is a boolean */
|
52
42
|
function isBoolean(value) {
|
53
43
|
return typeof value === 'boolean';
|
54
44
|
}
|
55
|
-
/**
|
56
|
-
* Validate the user's `rules` object and its values. As a user can provide:
|
57
|
-
* @example
|
58
|
-
* {
|
59
|
-
* rules: {
|
60
|
-
* 'ruleId1': { enabled: false },
|
61
|
-
* 'ruleId2': { enabled: false }
|
62
|
-
* 'ruleId3': { enabled: false }
|
63
|
-
* // ...
|
64
|
-
* }
|
65
|
-
* }
|
66
|
-
*
|
67
|
-
* @param rules The user's rules object.
|
68
|
-
*/
|
69
45
|
function validateRulesProperty(rules) {
|
70
46
|
if (!isObject(rules)) {
|
71
47
|
throw new Error('`rules` property must be an object. Full example: `{ rules: { "ruleId": { enabled: false } } }`');
|
@@ -73,7 +49,6 @@ function validateRulesProperty(rules) {
|
|
73
49
|
if (!Object.keys(rules).length) {
|
74
50
|
throw new Error('`rules` object must contain at least one key-value pair. Full example: `{ rules: { "ruleId": { enabled: false } } }`');
|
75
51
|
}
|
76
|
-
// Validate each K:V pair in the `rules` object e.g. { 'ruleId': { enabled: false } }
|
77
52
|
for (const ruleKey of Object.keys(rules)) {
|
78
53
|
const ruleValue = rules[ruleKey];
|
79
54
|
if (!isObject(ruleValue)) {
|
@@ -90,32 +65,6 @@ function validateRulesProperty(rules) {
|
|
90
65
|
}
|
91
66
|
}
|
92
67
|
}
|
93
|
-
/**
|
94
|
-
* Validate the user's `runOnly` configuration. A user can provide:
|
95
|
-
* @example
|
96
|
-
* {
|
97
|
-
* runOnly: {
|
98
|
-
* type: 'rule',
|
99
|
-
* values: ['ruleId1', 'ruleId2', 'ruleId3']
|
100
|
-
* }
|
101
|
-
* }
|
102
|
-
*
|
103
|
-
* OR
|
104
|
-
*
|
105
|
-
* @example
|
106
|
-
* {
|
107
|
-
* runOnly: ['ruleId1', 'ruleId2', 'ruleId3']
|
108
|
-
* }
|
109
|
-
*
|
110
|
-
* OR
|
111
|
-
*
|
112
|
-
* @example
|
113
|
-
* {
|
114
|
-
* runOnly: 'ruleId1'
|
115
|
-
* }
|
116
|
-
*
|
117
|
-
* @param runOnly The user's runOnly object, array, or string.
|
118
|
-
*/
|
119
68
|
function validateRunOnlyProperty(runOnly) {
|
120
69
|
const isRunOnlyObject = isObject(runOnly);
|
121
70
|
const isRunOnlyArray = Array.isArray(runOnly);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validateAxeRunOptions.js","sourceRoot":"","sources":["../../src/utils/validateAxeRunOptions.ts"],"names":[],"mappings":";;AAmBA,sDAqCC;AAKD,4BAEC;AA1DD,MAAM,oBAAoB,GAA+B;IACvD,OAAO;IACP,MAAM;IACN,KAAK;IACL,MAAM;CACP,CAAA;
|
1
|
+
{"version":3,"file":"validateAxeRunOptions.js","sourceRoot":"","sources":["../../src/utils/validateAxeRunOptions.ts"],"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AClI,CAAA;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
@@ -14,7 +14,6 @@ describe('validateAxeRunOptions', () => {
|
|
14
14
|
describe('given an option that has not been exposed to be configured', () => {
|
15
15
|
it('throws', () => {
|
16
16
|
chai_1.assert.throws(() => {
|
17
|
-
//@ts-expect-error - testing invalid input
|
18
17
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ a: 'a' });
|
19
18
|
}, /Invalid property found in `runOptions`/i);
|
20
19
|
});
|
@@ -23,7 +22,6 @@ describe('validateAxeRunOptions', () => {
|
|
23
22
|
describe('when `ancestry` is not a boolean', () => {
|
24
23
|
it('throws', () => {
|
25
24
|
chai_1.assert.throws(() => {
|
26
|
-
//@ts-expect-error - testing invalid input
|
27
25
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ ancestry: 'a' });
|
28
26
|
}, /`ancestry` property must be a boolean./i);
|
29
27
|
});
|
@@ -40,7 +38,6 @@ describe('validateAxeRunOptions', () => {
|
|
40
38
|
describe('when `rules` is not an object', () => {
|
41
39
|
it('throws', () => {
|
42
40
|
chai_1.assert.throws(() => {
|
43
|
-
//@ts-expect-error - testing invalid input
|
44
41
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ rules: 'a' });
|
45
42
|
}, /`rules` property must be an object./i);
|
46
43
|
});
|
@@ -48,7 +45,6 @@ describe('validateAxeRunOptions', () => {
|
|
48
45
|
describe('when `rules` is an array', () => {
|
49
46
|
it('throws', () => {
|
50
47
|
chai_1.assert.throws(() => {
|
51
|
-
//@ts-expect-error - testing invalid input
|
52
48
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ rules: ['a'] });
|
53
49
|
}, /`rules` property must be an object./i);
|
54
50
|
});
|
@@ -65,7 +61,6 @@ describe('validateAxeRunOptions', () => {
|
|
65
61
|
describe('and the value is not an object', () => {
|
66
62
|
it('throws', () => {
|
67
63
|
chai_1.assert.throws(() => {
|
68
|
-
//@ts-expect-error - testing invalid input
|
69
64
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ rules: { a: 'a' } });
|
70
65
|
}, /The value of the `a` key in the `rules` object must be an object./i);
|
71
66
|
});
|
@@ -74,7 +69,6 @@ describe('validateAxeRunOptions', () => {
|
|
74
69
|
describe('and the value has no properties', () => {
|
75
70
|
it('throws', () => {
|
76
71
|
chai_1.assert.throws(() => {
|
77
|
-
//@ts-expect-error - testing invalid input
|
78
72
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ rules: { a: {} } });
|
79
73
|
}, /The `a` key in the `rules` object must only contain the `enabled` property./i);
|
80
74
|
});
|
@@ -83,7 +77,6 @@ describe('validateAxeRunOptions', () => {
|
|
83
77
|
describe('and the value does not have an `enabled` property', () => {
|
84
78
|
it('throws', () => {
|
85
79
|
chai_1.assert.throws(() => {
|
86
|
-
//@ts-expect-error - testing invalid input
|
87
80
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ rules: { a: { b: 'a' } } });
|
88
81
|
}, /The `a` key in the `rules` object must contain an `enabled` property./i);
|
89
82
|
});
|
@@ -92,7 +85,6 @@ describe('validateAxeRunOptions', () => {
|
|
92
85
|
describe('and the `enabled` property is not a boolean', () => {
|
93
86
|
it('throws', () => {
|
94
87
|
chai_1.assert.throws(() => {
|
95
|
-
//@ts-expect-error - testing invalid input
|
96
88
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ rules: { a: { enabled: 'a' } } });
|
97
89
|
}, /The `enabled` property of the `a` key in the `rules` object must be a boolean./i);
|
98
90
|
});
|
@@ -130,7 +122,6 @@ describe('validateAxeRunOptions', () => {
|
|
130
122
|
describe('and the array is not an array of strings', () => {
|
131
123
|
it('throws', () => {
|
132
124
|
chai_1.assert.throws(() => {
|
133
|
-
//@ts-expect-error - testing invalid input
|
134
125
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ runOnly: ['a', 1] });
|
135
126
|
}, /`runOnly` array must contain only strings./i);
|
136
127
|
});
|
@@ -147,7 +138,6 @@ describe('validateAxeRunOptions', () => {
|
|
147
138
|
describe('when `runOnly` is not a string, array or object', () => {
|
148
139
|
it('throws', () => {
|
149
140
|
chai_1.assert.throws(() => {
|
150
|
-
//@ts-expect-error - testing invalid input
|
151
141
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ runOnly: 1 });
|
152
142
|
}, /`runOnly` property must be an object, an array, or a string./i);
|
153
143
|
});
|
@@ -156,7 +146,6 @@ describe('validateAxeRunOptions', () => {
|
|
156
146
|
describe('and the object has no `type` property', () => {
|
157
147
|
it('throws', () => {
|
158
148
|
chai_1.assert.throws(() => {
|
159
|
-
//@ts-expect-error - testing invalid input
|
160
149
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ runOnly: {} });
|
161
150
|
}, /`runOnly` object must contain a `type` property./i);
|
162
151
|
});
|
@@ -164,7 +153,6 @@ describe('validateAxeRunOptions', () => {
|
|
164
153
|
describe('and the object has no `values` property', () => {
|
165
154
|
it('throws', () => {
|
166
155
|
chai_1.assert.throws(() => {
|
167
|
-
//@ts-expect-error - testing invalid input
|
168
156
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ runOnly: { type: 'rule' } });
|
169
157
|
}, /`runOnly` object must contain a `values` property./i);
|
170
158
|
});
|
@@ -172,7 +160,6 @@ describe('validateAxeRunOptions', () => {
|
|
172
160
|
describe('and the object has an invalid `type` property', () => {
|
173
161
|
it('throws', () => {
|
174
162
|
chai_1.assert.throws(() => {
|
175
|
-
//@ts-expect-error - testing invalid input
|
176
163
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ runOnly: { type: 'a', values: ['a'] } });
|
177
164
|
}, /`runOnly` object's `type` property must be one of the following:/i);
|
178
165
|
});
|
@@ -181,7 +168,6 @@ describe('validateAxeRunOptions', () => {
|
|
181
168
|
describe('and the `values` property is not an array', () => {
|
182
169
|
it('throws', () => {
|
183
170
|
chai_1.assert.throws(() => {
|
184
|
-
//@ts-expect-error - testing invalid input
|
185
171
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({ runOnly: { type: 'rule', values: 'a' } });
|
186
172
|
}, /`runOnly` object's `values` property must be an array./i);
|
187
173
|
});
|
@@ -197,7 +183,6 @@ describe('validateAxeRunOptions', () => {
|
|
197
183
|
it('throws', () => {
|
198
184
|
chai_1.assert.throws(() => {
|
199
185
|
(0, validateAxeRunOptions_1.validateAxeRunOptions)({
|
200
|
-
//@ts-expect-error - testing invalid input
|
201
186
|
runOnly: { type: 'rule', values: ['a', 1] }
|
202
187
|
});
|
203
188
|
}, /`runOnly` object's `values` property must contain only strings./i);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validateAxeRunOptions.test.js","sourceRoot":"","sources":["../../src/utils/validateAxeRunOptions.test.ts"],"names":[],"mappings":";;AAAA,iBAAc;AACd,+BAA6B;AAC7B,mEAA+D;AAE/D,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;YACxB,aAAM,CAAC,YAAY,CAAC,GAAG,EAAE;gBACvB,IAAA,6CAAqB,GAAE,CAAA;YACzB,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,4DAA4D,EAAE,GAAG,EAAE;QAC1E,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;YAChB,aAAM,CAAC,MAAM,CAAC,GAAG,EAAE;
|
1
|
+
{"version":3,"file":"validateAxeRunOptions.test.js","sourceRoot":"","sources":["../../src/utils/validateAxeRunOptions.test.ts"],"names":[],"mappings":";;AAAA,iBAAc;AACd,+BAA6B;AAC7B,mEAA+D;AAE/D,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;YACxB,aAAM,CAAC,YAAY,CAAC,G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