Skip to content
Extraits de code Groupes Projets
Valider 06ad78f0 rédigé par Sarah Mei's avatar Sarah Mei
Parcourir les fichiers

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

parent 18690f2b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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();
......
......@@ -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);
});
});
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter