From b5a5e087d858162bffe4cce73e184f141bd91669 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 28 Aug 2018 15:42:29 +0200 Subject: [PATCH] Fix expected depth as string --- core/js/tests/specs/files/clientSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/js/tests/specs/files/clientSpec.js b/core/js/tests/specs/files/clientSpec.js index 113e5b546d..6c15857c57 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');