2014-01-12 21:57:53 +04:00
|
|
|
{
|
2016-11-07 18:18:26 +03:00
|
|
|
"name": "nextcloud-js-tests",
|
|
|
|
"description": "Nextcloud tests",
|
|
|
|
"version": "0.0.2",
|
2015-07-10 12:14:35 +03:00
|
|
|
"author": {
|
|
|
|
"name": "Vincent Petry",
|
|
|
|
"email": "pvince81@owncloud.com"
|
|
|
|
},
|
|
|
|
"private": true,
|
2016-11-07 18:18:26 +03:00
|
|
|
"homepage": "https://github.com/nextcloud/",
|
2015-07-10 12:14:35 +03:00
|
|
|
"contributors": [],
|
|
|
|
"devDependencies": {
|
2020-04-05 13:57:12 +03:00
|
|
|
"handlebars": "^4.7.6",
|
2017-04-25 16:26:46 +03:00
|
|
|
"jasmine-core": "~2.5.2",
|
2017-03-02 12:11:23 +03:00
|
|
|
"jasmine-sinon": "^0.4.0",
|
2020-09-26 04:16:20 +03:00
|
|
|
"jsdoc": "^3.6.6",
|
2020-12-29 10:18:29 +03:00
|
|
|
"karma": "^5.2.3",
|
|
|
|
"karma-chrome-launcher": "^3.1.0",
|
2020-04-19 12:21:48 +03:00
|
|
|
"karma-coverage": "2.0.1",
|
2018-07-17 23:51:01 +03:00
|
|
|
"karma-jasmine": "^1.1.2",
|
2017-03-02 12:11:23 +03:00
|
|
|
"karma-jasmine-sinon": "^1.0.4",
|
2020-12-29 10:18:29 +03:00
|
|
|
"karma-spec-reporter": "^0.0.32",
|
2021-02-06 05:15:41 +03:00
|
|
|
"karma-viewport": "^1.0.8",
|
2020-12-29 13:01:34 +03:00
|
|
|
"node-sass": "~5.0.0",
|
2020-12-29 10:18:29 +03:00
|
|
|
"puppeteer": "^5.5.0",
|
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>
2018-05-26 18:10:12 +03:00
|
|
|
"sinon": "<= 5.0.7"
|
2015-07-10 12:14:35 +03:00
|
|
|
},
|
2017-03-02 12:11:23 +03:00
|
|
|
"engine": "node >= 6.9"
|
2014-01-12 21:57:53 +04:00
|
|
|
}
|