Fix some publisher specs - spelling errors and stray console.log
This commit is contained in:
parent
18690f2b44
commit
06ad78f026
2 changed files with 4 additions and 6 deletions
|
|
@ -341,8 +341,6 @@ var Publisher = {
|
||||||
'<input id="aspect_ids_" name="aspect_ids[]" type="hidden" value="'+aspectId+'">');
|
'<input id="aspect_ids_" name="aspect_ids[]" type="hidden" value="'+aspectId+'">');
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(li);
|
|
||||||
|
|
||||||
if(li.hasClass('radio')){
|
if(li.hasClass('radio')){
|
||||||
$.each(hiddenFields, function(index, value){
|
$.each(hiddenFields, function(index, value){
|
||||||
$(value).remove();
|
$(value).remove();
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ describe("Publisher", function() {
|
||||||
|
|
||||||
$("#publisher .dropdown .dropdown_list li.aspect_selector").last().click();
|
$("#publisher .dropdown .dropdown_list li.aspect_selector").last().click();
|
||||||
|
|
||||||
$.each($("#publihser .dropdown .dropdown_list li.radio"), function(index, element){
|
$.each($("#publisher .dropdown .dropdown_list li.radio"), function(index, element){
|
||||||
expect($(element).hasClass("selected")).toBeFalsy();
|
expect($(element).hasClass("selected")).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -72,9 +72,9 @@ describe("Publisher", function() {
|
||||||
it('is called with the correct element', function(){
|
it('is called with the correct element', function(){
|
||||||
spyOn(Publisher, 'toggleAspectIds');
|
spyOn(Publisher, 'toggleAspectIds');
|
||||||
Publisher.bindAspectToggles();
|
Publisher.bindAspectToggles();
|
||||||
var aspBadge = $("#publisher .dropdown .dropdown_list li").last();
|
var aspectBadge = $("#publisher .dropdown .dropdown_list li").last();
|
||||||
aspBadge.click();
|
aspectBadge.click();
|
||||||
expect(Publisher.toggleAspectIds).toHaveBeenCalledWith(aspBadge);
|
expect(Publisher.toggleAspectIds).toHaveBeenCalledWith(aspectBadge);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue