Fix some publisher specs - spelling errors and stray console.log

This commit is contained in:
Sarah Mei 2011-10-23 19:09:20 -07:00
parent 18690f2b44
commit 06ad78f026
2 changed files with 4 additions and 6 deletions

View file

@ -341,8 +341,6 @@ var Publisher = {
'<input id="aspect_ids_" name="aspect_ids[]" type="hidden" value="'+aspectId+'">');
};
console.log(li);
if(li.hasClass('radio')){
$.each(hiddenFields, function(index, value){
$(value).remove();

View file

@ -61,7 +61,7 @@ describe("Publisher", function() {
$("#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();
});
@ -72,9 +72,9 @@ describe("Publisher", function() {
it('is called with the correct element', function(){
spyOn(Publisher, 'toggleAspectIds');
Publisher.bindAspectToggles();
var aspBadge = $("#publisher .dropdown .dropdown_list li").last();
aspBadge.click();
expect(Publisher.toggleAspectIds).toHaveBeenCalledWith(aspBadge);
var aspectBadge = $("#publisher .dropdown .dropdown_list li").last();
aspectBadge.click();
expect(Publisher.toggleAspectIds).toHaveBeenCalledWith(aspectBadge);
});
});