expect-webdriverio 6.0.1 → 6.0.2
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/lib/util/elementsUtil.js +1 -2
- package/package.json +4 -3
package/lib/util/elementsUtil.js
CHANGED
|
@@ -14,10 +14,9 @@ export const fillSingleExpectedForElementArray = (subject, value) => {
|
|
|
14
14
|
export const isArray = (obj) => {
|
|
15
15
|
return Array.isArray(obj);
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
const isSelector = (obj) => {
|
|
18
18
|
return !!obj
|
|
19
19
|
&& typeof obj === 'object'
|
|
20
|
-
&& 'selector' in obj
|
|
21
20
|
&& 'parent' in obj;
|
|
22
21
|
};
|
|
23
22
|
export const isElementArray = (obj) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expect-webdriverio",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"author": "Mykola Grybyk <mykola.grybyk@gmail.com>",
|
|
5
5
|
"description": "WebdriverIO Assertion Library",
|
|
6
6
|
"license": "MIT",
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
"checks:all": "npm run build && npm run compile && npm run tsc:root-types && npm run test && npm run ts",
|
|
73
73
|
"watch": "npm run compile -- --watch",
|
|
74
74
|
"prepare": "husky",
|
|
75
|
-
"playgrounds:
|
|
75
|
+
"playgrounds:clean": "rimraf --glob '**/node_modules'",
|
|
76
|
+
"playgrounds:setup": "npm run playgrounds:clean; npm i && cd playgrounds && npm run setup",
|
|
76
77
|
"playgrounds:checks:all": "cd playgrounds && npm run checks:all",
|
|
77
78
|
"playgrounds:snapshots:update": "cd playgrounds && npm run snapshots:update"
|
|
78
79
|
},
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
"eslint": "^9.39.5",
|
|
97
98
|
"husky": "^9.1.7",
|
|
98
99
|
"npm-run-all2": "^9.0.3",
|
|
99
|
-
"release-it": "^21.0.
|
|
100
|
+
"release-it": "^21.0.2",
|
|
100
101
|
"rimraf": "^6.1.3",
|
|
101
102
|
"strip-ansi": "^7.2.0",
|
|
102
103
|
"typescript": "^5.9.3",
|