diff --git a/spec/controlbox.js b/spec/controlbox.js index 0cd123a2e..3df356383 100644 --- a/spec/controlbox.js +++ b/spec/controlbox.js @@ -415,6 +415,11 @@ spyOn(converse, 'emit'); spyOn(this.rosterview, 'render').andCallThrough(); spyOn(this.controlboxtoggle, 'showControlBox').andCallThrough(); + var addName = function (idx, item) { + if (!$(item).hasClass('request-actions')) { + names.push($(item).text().replace(/^\s+|\s+$/g, '')); + } + }; for (i=0; i