summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2018-08-28 15:42:29 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-01-24 21:15:25 +0100
commitb5a5e087d858162bffe4cce73e184f141bd91669 (patch)
tree5fb1117689f593c2639879c5d6326a0cb1aabfab
parentfe9075eb481bb9846c82f13d0265bea6d36cec01 (diff)
downloadnextcloud-server-b5a5e087d858162bffe4cce73e184f141bd91669.tar.gz
nextcloud-server-b5a5e087d858162bffe4cce73e184f141bd91669.zip
Fix expected depth as string
-rw-r--r--core/js/tests/specs/files/clientSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/tests/specs/files/clientSpec.js b/core/js/tests/specs/files/clientSpec.js
index 113e5b546d0..6c15857c57d 100644
--- a/core/js/tests/specs/files/clientSpec.js
+++ b/core/js/tests/specs/files/clientSpec.js
@@ -227,7 +227,7 @@ describe('OC.Files.Client tests', function() {
expect(requestStub.calledOnce).toEqual(true);
expect(requestStub.lastCall.args[0]).toEqual('PROPFIND');
expect(requestStub.lastCall.args[1]).toEqual(baseUrl + 'path/to%20space/%E6%96%87%E4%BB%B6%E5%A4%B9');
- expect(requestStub.lastCall.args[2].Depth).toEqual(1);
+ expect(requestStub.lastCall.args[2].Depth).toEqual('1');
var props = getRequestedProperties(requestStub.lastCall.args[3]);
expect(props).toContain('{DAV:}getlastmodified');
@@ -519,7 +519,7 @@ describe('OC.Files.Client tests', function() {
expect(requestStub.calledOnce).toEqual(true);
expect(requestStub.lastCall.args[0]).toEqual('PROPFIND');
expect(requestStub.lastCall.args[1]).toEqual(baseUrl + 'path/to%20space/%E6%96%87%E4%BB%B6%E5%A4%B9');
- expect(requestStub.lastCall.args[2].Depth).toEqual(0);
+ expect(requestStub.lastCall.args[2].Depth).toEqual('0');
var props = getRequestedProperties(requestStub.lastCall.args[3]);
expect(props).toContain('{DAV:}getlastmodified');