@wdio/webdriver-mock-service 9.4.2 → 9.4.4
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/build/WebDriverMock.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import nock from 'nock';
|
|
2
2
|
export interface CommandMock {
|
|
3
|
-
[commandName: string]: (...args:
|
|
3
|
+
[commandName: string]: (...args: unknown[]) => nock.Interceptor;
|
|
4
4
|
}
|
|
5
5
|
export default class WebDriverMock {
|
|
6
6
|
path: string;
|
|
@@ -15,6 +15,6 @@ export default class WebDriverMock {
|
|
|
15
15
|
* @returns {Function} to be called by Nock to match actual path
|
|
16
16
|
*/
|
|
17
17
|
static pathMatcher(expectedPath: string): (path: string) => boolean;
|
|
18
|
-
get(
|
|
18
|
+
get(_obj: unknown, commandName: string): (...args: unknown[]) => nock.Interceptor;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=WebDriverMock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebDriverMock.d.ts","sourceRoot":"","sources":["../src/WebDriverMock.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AAmBvB,MAAM,WAAW,WAAW;IACxB,CAAC,WAAW,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"WebDriverMock.d.ts","sourceRoot":"","sources":["../src/WebDriverMock.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AAmBvB,MAAM,WAAW,WAAW;IACxB,CAAC,WAAW,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC,WAAW,CAAA;CAClE;AAUD,MAAM,CAAC,OAAO,OAAO,aAAa;IAGsC,IAAI,EAAE,MAAM;IAFhF,OAAO,EAAE,WAAW,CAAA;IACpB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAA;gBACL,IAAI,GAAE,MAAoB,EAAE,IAAI,GAAE,MAAa,EAAS,IAAI,GAAE,MAAY;IAOtF;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,IAAI,EAAC,MAAM,KAAI,OAAO;IAqBjE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAIjB,OAAO,EAAE;CAoCjC"}
|
package/build/index.js
CHANGED
|
@@ -58,7 +58,7 @@ var WebDriverMock = class _WebDriverMock {
|
|
|
58
58
|
return path === expectedPath;
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
get(
|
|
61
|
+
get(_obj, commandName) {
|
|
62
62
|
const { method, endpoint, commandData } = protocolFlattened.get(commandName);
|
|
63
63
|
return (...args) => {
|
|
64
64
|
let urlPath = endpoint;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/webdriver-mock-service",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
4
4
|
"description": "A WebdriverIO service to stub all endpoints for internal testing purposes.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-webdriver-mock-service",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"typeScriptVersion": "3.8.3",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@types/uuid": "^10.0.0",
|
|
31
|
-
"@wdio/protocols": "9.
|
|
32
|
-
"@wdio/types": "9.4.
|
|
31
|
+
"@wdio/protocols": "9.4.4",
|
|
32
|
+
"@wdio/types": "9.4.4",
|
|
33
33
|
"nock": "14.0.0-beta.18",
|
|
34
34
|
"uuid": "^10.0.0",
|
|
35
|
-
"webdriverio": "9.4.
|
|
35
|
+
"webdriverio": "9.4.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@wdio/globals": "9.4.
|
|
38
|
+
"@wdio/globals": "9.4.4"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d327d86e07d16eaa0ecdf0656c1868ba73261393"
|
|
44
44
|
}
|