@appium/test-support 3.0.47 → 3.0.49
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/lib/index.d.ts +0 -1
- package/build/lib/index.js +1 -3
- package/build/lib/index.js.map +1 -1
- package/lib/index.js +0 -1
- package/package.json +4 -4
- package/build/lib/time-utils.d.ts +0 -9
- package/build/lib/time-utils.d.ts.map +0 -1
- package/build/lib/time-utils.js +0 -26
- package/build/lib/time-utils.js.map +0 -1
- package/lib/time-utils.js +0 -24
package/build/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { stubEnv } from "./env-utils";
|
|
2
2
|
export { stubLog } from "./log-utils";
|
|
3
|
-
export { fakeTime } from "./time-utils";
|
|
4
3
|
export { withMocks, verifyMocks } from "./mock-utils";
|
|
5
4
|
export { withSandbox, verifySandbox } from "./sandbox-utils";
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
package/build/lib/index.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.verifySandbox = exports.withSandbox = exports.verifyMocks = exports.withMocks = exports.
|
|
3
|
+
exports.verifySandbox = exports.withSandbox = exports.verifyMocks = exports.withMocks = exports.stubLog = exports.stubEnv = void 0;
|
|
4
4
|
// this just needs to be imported, for the functionality to be injected
|
|
5
5
|
require("./unhandled-rejection");
|
|
6
6
|
var env_utils_1 = require("./env-utils");
|
|
7
7
|
Object.defineProperty(exports, "stubEnv", { enumerable: true, get: function () { return env_utils_1.stubEnv; } });
|
|
8
8
|
var log_utils_1 = require("./log-utils");
|
|
9
9
|
Object.defineProperty(exports, "stubLog", { enumerable: true, get: function () { return log_utils_1.stubLog; } });
|
|
10
|
-
var time_utils_1 = require("./time-utils");
|
|
11
|
-
Object.defineProperty(exports, "fakeTime", { enumerable: true, get: function () { return time_utils_1.fakeTime; } });
|
|
12
10
|
var mock_utils_1 = require("./mock-utils");
|
|
13
11
|
Object.defineProperty(exports, "withMocks", { enumerable: true, get: function () { return mock_utils_1.withMocks; } });
|
|
14
12
|
Object.defineProperty(exports, "verifyMocks", { enumerable: true, get: function () { return mock_utils_1.verifyMocks; } });
|
package/build/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";;;AAAA,uEAAuE;AACvE,iCAA+B;AAE/B,yCAAoC;AAA5B,oGAAA,OAAO,OAAA;AACf,yCAAoC;AAA5B,oGAAA,OAAO,OAAA;AACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";;;AAAA,uEAAuE;AACvE,iCAA+B;AAE/B,yCAAoC;AAA5B,oGAAA,OAAO,OAAA;AACf,yCAAoC;AAA5B,oGAAA,OAAO,OAAA;AACf,2CAAoD;AAA5C,uGAAA,SAAS,OAAA;AAAE,yGAAA,WAAW,OAAA;AAC9B,iDAA2D;AAAnD,4GAAA,WAAW,OAAA;AAAE,8GAAA,aAAa,OAAA"}
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/test-support",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.49",
|
|
4
4
|
"description": "A collection of test utilities used across Appium packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@appium/support": "^5.1.
|
|
48
|
+
"@appium/support": "^5.1.4",
|
|
49
49
|
"@colors/colors": "1.6.0",
|
|
50
50
|
"bluebird": "3.7.2",
|
|
51
51
|
"lodash": "4.17.21",
|
|
52
52
|
"loud-rejection": "2.2.0",
|
|
53
|
-
"sinon": "
|
|
53
|
+
"sinon": "19.0.2",
|
|
54
54
|
"source-map-support": "0.5.21"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "122a1863de615ad70130d5ca9bce83b7a03d4d45"
|
|
64
64
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"time-utils.d.ts","sourceRoot":"","sources":["../../lib/time-utils.js"],"names":[],"mappings":"AAAA,kBAAkB;AAClB,iDAGC;AAED;IACE,wBAEC;IADC,WAAkB;IAGpB,yCAUC;CACF"}
|
package/build/lib/time-utils.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fakeTime = fakeTime;
|
|
4
|
-
/** @deprecated */
|
|
5
|
-
function fakeTime(sandbox) {
|
|
6
|
-
let clock = sandbox.useFakeTimers();
|
|
7
|
-
return new TimeLord(clock);
|
|
8
|
-
}
|
|
9
|
-
class TimeLord {
|
|
10
|
-
constructor(clock) {
|
|
11
|
-
this.clock = clock;
|
|
12
|
-
}
|
|
13
|
-
speedup(interval, times) {
|
|
14
|
-
let tick = (n) => {
|
|
15
|
-
if (n === 0)
|
|
16
|
-
return; // eslint-disable-line curly
|
|
17
|
-
process.nextTick(() => {
|
|
18
|
-
this.clock.tick(interval);
|
|
19
|
-
n--;
|
|
20
|
-
tick(n);
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
tick(times);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=time-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"time-utils.js","sourceRoot":"","sources":["../../lib/time-utils.js"],"names":[],"mappings":";;AAuBQ,4BAAQ;AAvBhB,kBAAkB;AAClB,SAAS,QAAQ,CAAC,OAAO;IACvB,IAAI,KAAK,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IACpC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,QAAQ;IACZ,YAAY,KAAK;QACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,OAAO,CAAC,QAAQ,EAAE,KAAK;QACrB,IAAI,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE;YACf,IAAI,CAAC,KAAK,CAAC;gBAAE,OAAO,CAAC,4BAA4B;YACjD,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;gBACpB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC1B,CAAC,EAAE,CAAC;gBACJ,IAAI,CAAC,CAAC,CAAC,CAAC;YACV,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;CACF"}
|
package/lib/time-utils.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @deprecated */
|
|
2
|
-
function fakeTime(sandbox) {
|
|
3
|
-
let clock = sandbox.useFakeTimers();
|
|
4
|
-
return new TimeLord(clock);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
class TimeLord {
|
|
8
|
-
constructor(clock) {
|
|
9
|
-
this.clock = clock;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
speedup(interval, times) {
|
|
13
|
-
let tick = (n) => {
|
|
14
|
-
if (n === 0) return; // eslint-disable-line curly
|
|
15
|
-
process.nextTick(() => {
|
|
16
|
-
this.clock.tick(interval);
|
|
17
|
-
n--;
|
|
18
|
-
tick(n);
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
tick(times);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export {fakeTime};
|