summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-22 23:13:28 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2015-10-23 09:24:03 +0200
commit9071e756a103319c6747974292463f30b89ab4e3 (patch)
treeb9739ecd154f92b9ce863a4688c9d40241c649ce /core/js
parent4f5ff9c105360335d525ac2bf887bdd7ba4fe03a (diff)
downloadnextcloud-server-9071e756a103319c6747974292463f30b89ab4e3.tar.gz
nextcloud-server-9071e756a103319c6747974292463f30b89ab4e3.zip
Fix for broken ajax/share.php endpoint
Even more code mess :( All tests pass again. But I'm really not happy with this endpoint.
Diffstat (limited to 'core/js')
-rw-r--r--core/js/tests/specs/sharedialogviewSpec.js6
1 files changed, 4 insertions, 2 deletions
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();