botium-core 1.13.11 → 1.13.12
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/package.json
CHANGED
package/src/Defaults.js
CHANGED
|
@@ -9,7 +9,6 @@ module.exports = {
|
|
|
9
9
|
[Capabilities.TEMPDIR]: 'botiumwork',
|
|
10
10
|
[Capabilities.CLEANUPTEMPDIR]: true,
|
|
11
11
|
[Capabilities.WAITFORBOTTIMEOUT]: 10000,
|
|
12
|
-
[Capabilities.SIMULATE_WRITING_SPEED]: false,
|
|
13
12
|
[Capabilities.SIMPLEREST_PING_RETRIES]: 6,
|
|
14
13
|
[Capabilities.SIMPLEREST_PING_TIMEOUT]: 10000,
|
|
15
14
|
[Capabilities.SIMPLEREST_PING_VERB]: 'GET',
|
|
@@ -60,11 +60,11 @@ describe('driver.capabilities', function () {
|
|
|
60
60
|
describe('capabilities', function () {
|
|
61
61
|
it('should merge boolean caps', function () {
|
|
62
62
|
const myCaps = {
|
|
63
|
-
[Capabilities.
|
|
63
|
+
[Capabilities.SIMPLEREST_PING_PROCESS_RESPONSE]: 'YES'
|
|
64
64
|
}
|
|
65
65
|
const driver = new BotDriver(myCaps)
|
|
66
|
-
assert.isBoolean(driver.caps[Capabilities.
|
|
67
|
-
assert.isTrue(driver.caps[Capabilities.
|
|
66
|
+
assert.isBoolean(driver.caps[Capabilities.SIMPLEREST_PING_PROCESS_RESPONSE])
|
|
67
|
+
assert.isTrue(driver.caps[Capabilities.SIMPLEREST_PING_PROCESS_RESPONSE])
|
|
68
68
|
})
|
|
69
69
|
it('should merge string caps', function () {
|
|
70
70
|
const myCaps = {
|
|
@@ -76,11 +76,11 @@ describe('driver.capabilities', function () {
|
|
|
76
76
|
assert.isString(driver.caps.CAP_STRING_2)
|
|
77
77
|
})
|
|
78
78
|
it('should merge boolean envs', function () {
|
|
79
|
-
process.env.
|
|
79
|
+
process.env.BOTIUM_SIMPLEREST_PING_PROCESS_RESPONSE = 'NO'
|
|
80
80
|
const driver = new BotDriver()
|
|
81
|
-
delete process.env.
|
|
82
|
-
assert.isBoolean(driver.caps[Capabilities.
|
|
83
|
-
assert.isFalse(driver.caps[Capabilities.
|
|
81
|
+
delete process.env.BOTIUM_SIMPLEREST_PING_PROCESS_RESPONSE
|
|
82
|
+
assert.isBoolean(driver.caps[Capabilities.SIMPLEREST_PING_PROCESS_RESPONSE])
|
|
83
|
+
assert.isFalse(driver.caps[Capabilities.SIMPLEREST_PING_PROCESS_RESPONSE])
|
|
84
84
|
})
|
|
85
85
|
it('should parse array caps', function () {
|
|
86
86
|
DefaultCapabilities.MYCAP = []
|