268a92731f
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>
31 lines
780 B
JSON
31 lines
780 B
JSON
{
|
|
"name": "nextcloud-js-tests",
|
|
"description": "Nextcloud tests",
|
|
"version": "0.0.2",
|
|
"author": {
|
|
"name": "Vincent Petry",
|
|
"email": "pvince81@owncloud.com"
|
|
},
|
|
"private": true,
|
|
"homepage": "https://github.com/nextcloud/",
|
|
"contributors": [],
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"bower": "~1.8.0",
|
|
"handlebars": "^4.0.5",
|
|
"jasmine-core": "~2.5.2",
|
|
"jasmine-sinon": "^0.4.0",
|
|
"jsdoc": "~3.4.0",
|
|
"karma": "^1.5.0",
|
|
"karma-coverage": "*",
|
|
"karma-jasmine": "^1.1.0",
|
|
"karma-jasmine-sinon": "^1.0.4",
|
|
"karma-junit-reporter": "*",
|
|
"karma-phantomjs-launcher": "*",
|
|
"karma-viewport": "^0.4.2",
|
|
"phantomjs-prebuilt": "*",
|
|
"node-sass": "~4.1.1",
|
|
"sinon": "<= 5.0.7"
|
|
},
|
|
"engine": "node >= 6.9"
|
|
}
|