Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 302ee795 rédigé par Senya's avatar Senya Validation de Steffen van Bergerem
Parcourir les fichiers

Fix a jasmine test issue

The issue from a jasmine spec introduced by #7227 caused the testsuite that runs in a browser to be redirected out of the jasmine runner and therefore not finished.

closes #7299
parent c130b781
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,7 +7,7 @@ describe("Diaspora.Mobile.Comments", function(){ ...@@ -7,7 +7,7 @@ describe("Diaspora.Mobile.Comments", function(){
describe("initialize", function() { describe("initialize", function() {
it("calls submitComment when the comment form has been submitted", function() { it("calls submitComment when the comment form has been submitted", function() {
spyOn(Diaspora.Mobile.Comments, "submitComment"); spyOn(Diaspora.Mobile.Comments, "submitComment").and.returnValue(false);
Diaspora.Mobile.Comments.initialize(); Diaspora.Mobile.Comments.initialize();
Diaspora.Mobile.Comments.showCommentBox($(".stream .comment-action").first()); Diaspora.Mobile.Comments.showCommentBox($(".stream .comment-action").first());
$(".stream .new_comment").first().submit(); $(".stream .new_comment").first().submit();
......
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