]> source.dussan.org Git - nextcloud-server.git/commit
Added unit tests for "add()" method for file upload
authorVincent Petry <pvince81@owncloud.com>
Thu, 6 Mar 2014 12:49:57 +0000 (13:49 +0100)
committerVincent Petry <pvince81@owncloud.com>
Thu, 6 Mar 2014 12:53:34 +0000 (13:53 +0100)
commit07f78c824833bfcb3233f881286dc625d81e44f6
tree2a5cd8a83f034d943cf737f2c0a0c7f1d642ad8a
parente129f6845b8ec728455737e46cda872cc45f50c2
Added unit tests for "add()" method for file upload

- Added OC.Upload.init() to make the code testable
- Added unit tests for the add() method of the uploader with some error
  cases
apps/files/js/file-upload.js
apps/files/tests/js/fileUploadSpec.js [new file with mode: 0644]