Fix expected depth as string

This commit is contained in:
Vincent Petry 2018-08-28 15:42:29 +02:00 committed by Roeland Jago Douma
parent fe9075eb48
commit b5a5e087d8
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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');