diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-24 22:18:52 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-24 22:18:52 +0200 |
commit | 58cc1251be33b43a5bb9163e1b042970b8e81b4b (patch) | |
tree | eb327fc07a4dbe921c39376cb330cd9a54bff5da /core/js/tests | |
parent | e0b0115f99d8b93adfb9a9494aa1273f5e2f2200 (diff) | |
download | nextcloud-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.js | 3 |
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(); |