summaryrefslogtreecommitdiffstats
path: root/build/package.json
Commit message (Collapse)AuthorAgeFilesLines
* Limit Sinon version to 5.0.7 at mostDaniel Calviño Sánchez2018-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | 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>
* Add unit tests for the navigation bar slide gestureDaniel Calviño Sánchez2017-12-141-0/+1
| | | | | | | | The slide gesture is enabled or disabled depending on the width of the browser window. In order to easily control that width the karma-viewport plugin is now used in the unit tests. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix JS unit failure because of Jasmine 2.6 and the phantomjs launcherMorris Jobke2017-04-251-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* also install sinonMorris Jobke2017-03-231-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update karma, use sinon from npmVincent Petry2017-03-231-5/+10
| | | | | | | Update karma library and use sinon JS library provided by karma-jasmine-sinon instead of local file. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix js testsRoeland Jago Douma2017-01-061-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump jstests depsRoeland Jago Douma2016-11-081-7/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use proper PhantomJS library and run the tests as separate stepMorris Jobke2016-06-131-1/+1
| | | | * add dependency for phantomjs
* Update JS unit test libsVincent Petry2015-07-101-20/+21
| | | | | | | | Update sinon to 1.15.4. Update karma-jasmine to 0.3.0 Update jasmine to 2.3.4 This brings a bunch of new useful functions for unit testing.
* Make sure we use Jasmine 2 for running JS unit testsVincent Petry2015-03-041-2/+2
|
* added missing packages required to run "karma" and "phantomjs" insidernveach2014-03-121-1/+3
| | | "autotest-js"
* adding code coverage supportThomas Müller2014-01-211-1/+2
|
* Added Javascript unit testsVincent Petry2014-01-161-0/+19
- added karma utility to run jasmine unit tests - added Sinon library (for stubs/mocks/fakeserver) - added a few unit tests for core and files - added autotest-js.sh script