Unverified Commit 302ee795 authored by Senya's avatar Senya Committed by Steffen van Bergerem
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ describe("Diaspora.Mobile.Comments", function(){

  describe("initialize", 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.showCommentBox($(".stream .comment-action").first());
      $(".stream .new_comment").first().submit();