diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-03-16 14:59:01 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-03-20 19:09:03 +0100 |
commit | 6fef01c481bb436ed6811097d41ba260007fcf38 (patch) | |
tree | de31b4e9aabf7606cf69e9120aea2165c4090543 /core/js | |
parent | ce7775acd04a00db92604827df1ea503c551f588 (diff) | |
download | nextcloud-server-6fef01c481bb436ed6811097d41ba260007fcf38.tar.gz nextcloud-server-6fef01c481bb436ed6811097d41ba260007fcf38.zip |
Adjust search term to test
As the server response is faked the search term is ignored in the tests.
However, it is clearer to use a search term that would make the server
return what the faked response contains.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/tests/specs/sharedialogviewSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/tests/specs/sharedialogviewSpec.js b/core/js/tests/specs/sharedialogviewSpec.js index 6fd8fa7031f..c014dfc15d5 100644 --- a/core/js/tests/specs/sharedialogviewSpec.js +++ b/core/js/tests/specs/sharedialogviewSpec.js @@ -650,7 +650,7 @@ describe('OC.Share.ShareDialogView', function() { it('users', function () { dialog.render(); var response = sinon.stub(); - dialog.autocompleteHandler({term: 'bob'}, response); + dialog.autocompleteHandler({term: 'bo'}, response); var jsonData = JSON.stringify({ 'ocs': { 'meta': { @@ -701,7 +701,7 @@ describe('OC.Share.ShareDialogView', function() { it('groups', function () { dialog.render(); var response = sinon.stub(); - dialog.autocompleteHandler({term: 'group'}, response); + dialog.autocompleteHandler({term: 'grou'}, response); var jsonData = JSON.stringify({ 'ocs': { 'meta': { @@ -752,7 +752,7 @@ describe('OC.Share.ShareDialogView', function() { it('remotes', function () { dialog.render(); var response = sinon.stub(); - dialog.autocompleteHandler({term: 'bob'}, response); + dialog.autocompleteHandler({term: 'foo'}, response); var jsonData = JSON.stringify({ 'ocs': { 'meta': { |