Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-05-26 18:10:12 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-05-28 12:07:11 +0300
commitfe93f0935be4aa1bd5b9b3ce7dc727ed99664021 (patch)
tree32a84203073e7ce1514b25327c3f1f1a62c2a5b0 /build
parent5536d1718135c5a92856e27690f09c317953389e (diff)
Limit Sinon version to 5.0.7 at most
When using fake servers with Sinon.JS, the JavaScript test framework, the XHR objects are also fake. In Sinon 5.0.8 the "setRequestHeader" of XMLHttpRequest was modified to normalize the header values (as requested by the spec), but since then only string values are accepted; null or integer values can no longer be passed to "setRequestHeader", as it expects the "replace" function to be available in the object. However, in the tests null and integer values are passed to "setRequestHeader", which causes them to fail. Both Firefox and Chromium accept passing non-string values to their "setRequestHeader" implementation, and it is done, for example, in davclient.js; it is not clear yet whether Sinon got too restrictive or the code calling "setRequestHeader" was too loose. Given that davclient.js is an external dependency, as a temporary measure Sinon version is forced to be 5.0.7 at most until either Sinon or davclient.js are updated. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build')
-rw-r--r--build/package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/package.json b/build/package.json
index e6688966693..460c0a6ddb8 100644
--- a/build/package.json
+++ b/build/package.json
@@ -25,7 +25,7 @@
"karma-viewport": "^0.4.2",
"phantomjs-prebuilt": "*",
"node-sass": "~4.1.1",
- "sinon": "*"
+ "sinon": "<= 5.0.7"
},
"engine": "node >= 6.9"
}