summaryrefslogtreecommitdiffstats
path: root/core/js/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-24 22:18:52 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-24 22:18:52 +0200
commit58cc1251be33b43a5bb9163e1b042970b8e81b4b (patch)
treeeb327fc07a4dbe921c39376cb330cd9a54bff5da /core/js/tests
parente0b0115f99d8b93adfb9a9494aa1273f5e2f2200 (diff)
downloadnextcloud-server-58cc1251be33b43a5bb9163e1b042970b8e81b4b.tar.gz
nextcloud-server-58cc1251be33b43a5bb9163e1b042970b8e81b4b.zip
Use "complete" callback in onPasswordEntered
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/js/tests')
-rw-r--r--core/js/tests/specs/sharedialoglinkshareview.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/tests/specs/sharedialoglinkshareview.js b/core/js/tests/specs/sharedialoglinkshareview.js
index b7144d31942..811919b5603 100644
--- a/core/js/tests/specs/sharedialoglinkshareview.js
+++ b/core/js/tests/specs/sharedialoglinkshareview.js
@@ -121,7 +121,7 @@ describe('OC.Share.ShareDialogLinkShareView', function () {
expect($workingIcon.hasClass('hidden')).toBeFalsy();
expect(shareModel.saveLinkShare.withArgs({ password: 'myPassword' }).calledOnce).toBeTruthy();
- shareModel.saveLinkShare.yieldTo("success", [shareModel]);
+ shareModel.saveLinkShare.yieldTo("complete", [shareModel]);
expect($workingIcon.hasClass('hidden')).toBeTruthy();
});
@@ -132,6 +132,7 @@ describe('OC.Share.ShareDialogLinkShareView', function () {
expect($workingIcon.hasClass('hidden')).toBeFalsy();
expect(shareModel.saveLinkShare.withArgs({ password: 'myPassword' }).calledOnce).toBeTruthy();
+ shareModel.saveLinkShare.yieldTo("complete", [shareModel]);
shareModel.saveLinkShare.yieldTo("error", [shareModel, "The error message"]);
expect($workingIcon.hasClass('hidden')).toBeTruthy();