@afixt/test-utils 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +2 -1
- package/.github/dependabot.yml +36 -0
- package/.github/workflows/ci.yml +71 -0
- package/.github/workflows/security.yml +142 -0
- package/.husky/pre-commit +1 -0
- package/.jscpd.json +27 -0
- package/.markdownlint.json +9 -0
- package/.prettierignore +13 -0
- package/.prettierrc +10 -0
- package/docs/arrayUtils.js.html +2 -2
- package/docs/domUtils.js.html +2 -2
- package/docs/getAccessibleName.js.html +2 -2
- package/docs/getAccessibleText.js.html +2 -2
- package/docs/getAriaAttributesByElement.js.html +2 -2
- package/docs/getCSSGeneratedContent.js.html +2 -2
- package/docs/getComputedRole.js.html +2 -2
- package/docs/getFocusableElements.js.html +2 -2
- package/docs/getGeneratedContent.js.html +2 -2
- package/docs/getImageText.js.html +2 -2
- package/docs/getStyleObject.js.html +2 -2
- package/docs/global.html +2 -2
- package/docs/hasAccessibleName.js.html +2 -2
- package/docs/hasAttribute.js.html +2 -2
- package/docs/hasCSSGeneratedContent.js.html +2 -2
- package/docs/hasHiddenParent.js.html +2 -2
- package/docs/hasParent.js.html +2 -2
- package/docs/hasValidAriaAttributes.js.html +2 -2
- package/docs/hasValidAriaRole.js.html +2 -2
- package/docs/index.html +2 -2
- package/docs/index.js.html +2 -2
- package/docs/isAriaAttributesValid.js.html +2 -2
- package/docs/isComplexTable.js.html +2 -2
- package/docs/isDataTable.js.html +2 -2
- package/docs/isFocusable.js.html +2 -2
- package/docs/isHidden.js.html +2 -2
- package/docs/isOffScreen.js.html +2 -2
- package/docs/isValidUrl.js.html +2 -2
- package/docs/isVisible.js.html +2 -2
- package/docs/module-afixt-test-utils.html +2 -2
- package/docs/scripts/core.js +726 -726
- package/docs/scripts/core.min.js +22 -22
- package/docs/scripts/resize.js +90 -90
- package/docs/scripts/search.js +265 -265
- package/docs/scripts/third-party/Apache-License-2.0.txt +202 -202
- package/docs/scripts/third-party/fuse.js +8 -8
- package/docs/scripts/third-party/hljs-line-num-original.js +369 -369
- package/docs/scripts/third-party/hljs-original.js +5171 -5171
- package/docs/scripts/third-party/popper.js +5 -5
- package/docs/scripts/third-party/tippy.js +1 -1
- package/docs/scripts/third-party/tocbot.js +671 -671
- package/docs/styles/clean-jsdoc-theme-base.css +1159 -1159
- package/docs/styles/clean-jsdoc-theme-dark.css +412 -412
- package/docs/styles/clean-jsdoc-theme-light.css +482 -482
- package/docs/styles/clean-jsdoc-theme-scrollbar.css +29 -29
- package/docs/testContrast.js.html +2 -2
- package/docs/testLang.js.html +2 -2
- package/docs/testOrder.js.html +2 -2
- package/eslint.config.mjs +84 -0
- package/package.json +68 -41
- package/scratchpads/issue-6-standardize-repo.md +109 -0
- package/src/getAccessibleName.js +156 -112
- package/src/getAccessibleText.js +71 -42
- package/test/getAccessibleName.test.js +379 -315
- package/test/getAccessibleText.test.js +375 -308
- package/.eslintrc +0 -78
- package/.github/workflows/test.yml +0 -26
package/.eslintrc
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"extends": "eslint:recommended",
|
|
4
|
-
"env": {
|
|
5
|
-
"es6": true,
|
|
6
|
-
"node": true,
|
|
7
|
-
"browser": true,
|
|
8
|
-
"commonjs": true,
|
|
9
|
-
"jquery": true
|
|
10
|
-
},
|
|
11
|
-
"globals": {
|
|
12
|
-
"log": true,
|
|
13
|
-
"c3": true
|
|
14
|
-
},
|
|
15
|
-
"rules": {
|
|
16
|
-
"brace-style": [
|
|
17
|
-
"warn",
|
|
18
|
-
"1tbs",
|
|
19
|
-
{
|
|
20
|
-
"allowSingleLine": true
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"camelcase": "off",
|
|
24
|
-
"curly": "error",
|
|
25
|
-
"eqeqeq": "error",
|
|
26
|
-
"new-cap": "error",
|
|
27
|
-
"no-bitwise": "error",
|
|
28
|
-
"no-caller": "error",
|
|
29
|
-
"no-eq-null": "error",
|
|
30
|
-
"no-unused-expressions": "error",
|
|
31
|
-
"no-use-before-define": [
|
|
32
|
-
"error",
|
|
33
|
-
{
|
|
34
|
-
"functions": false
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"no-var": "warn",
|
|
38
|
-
"one-var": [
|
|
39
|
-
"error",
|
|
40
|
-
"never"
|
|
41
|
-
],
|
|
42
|
-
"quotes": [
|
|
43
|
-
"error",
|
|
44
|
-
"single"
|
|
45
|
-
],
|
|
46
|
-
"require-jsdoc": "error",
|
|
47
|
-
"semi": [
|
|
48
|
-
"error",
|
|
49
|
-
"always"
|
|
50
|
-
],
|
|
51
|
-
"space-before-function-paren": [
|
|
52
|
-
"error",
|
|
53
|
-
{
|
|
54
|
-
"anonymous": "always",
|
|
55
|
-
"named": "never",
|
|
56
|
-
"asyncArrow": "always"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"strict": [
|
|
60
|
-
"error",
|
|
61
|
-
"global"
|
|
62
|
-
],
|
|
63
|
-
"valid-jsdoc": [
|
|
64
|
-
"error",
|
|
65
|
-
{
|
|
66
|
-
"prefer": {
|
|
67
|
-
"return": "returns"
|
|
68
|
-
},
|
|
69
|
-
"requireReturn": false,
|
|
70
|
-
"requireReturnDescription": false
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"wrap-iife": [
|
|
74
|
-
"error",
|
|
75
|
-
"any"
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
test:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- name: Checkout code
|
|
14
|
-
uses: actions/checkout@v4
|
|
15
|
-
|
|
16
|
-
- name: Setup Node.js
|
|
17
|
-
uses: actions/setup-node@v4
|
|
18
|
-
with:
|
|
19
|
-
node-version: '18'
|
|
20
|
-
cache: 'npm'
|
|
21
|
-
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: npm ci
|
|
24
|
-
|
|
25
|
-
- name: Run tests
|
|
26
|
-
run: npm test
|