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:
parent
ce7775acd0
commit
6fef01c481
|
@ -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': {
|
||||
|
|
Loading…
Reference in New Issue