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>
This commit is contained in:
Daniel Calviño Sánchez 2018-03-16 14:59:01 +01:00
parent ce7775acd0
commit 6fef01c481
1 changed files with 3 additions and 3 deletions

View File

@ -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': {