From 9071e756a103319c6747974292463f30b89ab4e3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 22 Oct 2015 23:13:28 +0200 Subject: Fix for broken ajax/share.php endpoint Even more code mess :( All tests pass again. But I'm really not happy with this endpoint. --- core/js/tests/specs/sharedialogviewSpec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/js') diff --git a/core/js/tests/specs/sharedialogviewSpec.js b/core/js/tests/specs/sharedialogviewSpec.js index 0117f517d4c..1c05bf21968 100644 --- a/core/js/tests/specs/sharedialogviewSpec.js +++ b/core/js/tests/specs/sharedialogviewSpec.js @@ -146,7 +146,8 @@ describe('OC.Share.ShareDialogView', function() { expect(fakeServer.requests[1].method).toEqual('POST'); var body = OC.parseQueryString(fakeServer.requests[1].requestBody); - expect(body.shareWith).toEqual('foo'); + expect(body['shareWith[password]']).toEqual('foo'); + expect(body['shareWith[passwordChanged]']).toEqual('true'); fetchStub.reset(); @@ -185,7 +186,8 @@ describe('OC.Share.ShareDialogView', function() { expect(fakeServer.requests[1].method).toEqual('POST'); var body = OC.parseQueryString(fakeServer.requests[1].requestBody); - expect(body.shareWith).toEqual('foo'); + expect(body['shareWith[password]']).toEqual('foo'); + expect(body['shareWith[passwordChanged]']).toEqual('true'); fetchStub.reset(); -- cgit v1.2.3