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
This commit is contained in:
Senya 2017-01-28 05:15:33 +02:00 committed by Steffen van Bergerem
parent c130b78117
commit 302ee795b6
No known key found for this signature in database
GPG key ID: 315C9787D548DC6B

View file

@ -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();