summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-12-10 18:08:40 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-15 12:48:47 +0100
commitb8b77709c05df3d820af2bfc83ff9d386bc19990 (patch)
tree68a6f739b0d9f4af62d2169340d2c3b35e30d27a /apps/files/tests
parent294dcb4efffabc30fb85f50f2e01af2904b476a6 (diff)
downloadnextcloud-server-b8b77709c05df3d820af2bfc83ff9d386bc19990.tar.gz
nextcloud-server-b8b77709c05df3d820af2bfc83ff9d386bc19990.zip
Add handler for global ajax errors
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/filelistSpec.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index 0091a9ee6e4..122e618de96 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -2441,13 +2441,6 @@ describe('OCA.Files.FileList tests', function() {
getFolderContentsStub.restore();
fileList = undefined;
});
- it('redirects to files app in case of auth error', function () {
- deferredList.reject(401, 'Authentication error');
-
- expect(redirectStub.calledOnce).toEqual(true);
- expect(redirectStub.getCall(0).args[0]).toEqual(OC.webroot + '/index.php/apps/files');
- expect(getFolderContentsStub.calledOnce).toEqual(true);
- });
it('redirects to root folder in case of forbidden access', function () {
deferredList.reject(403);