Skip to content

Commit 293da20

Browse files
committed
revert changes in tests
1 parent 9ab94b0 commit 293da20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

routers/web/repo/pull_review_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,37 @@ func TestRenderConversation(t *testing.T) {
5656
}
5757
run("diff with outdated", func(t *testing.T, ctx *context.Context, resp *httptest.ResponseRecorder) {
5858
ctx.Data["ShowOutdatedComments"] = true
59-
renderConversation(ctx, preparedComment, "diff", preparedComment.GetLineContent())
59+
renderConversation(ctx, preparedComment, "diff")
6060
assert.Contains(t, resp.Body.String(), `<div class="content comment-container"`)
6161
})
6262
run("diff without outdated", func(t *testing.T, ctx *context.Context, resp *httptest.ResponseRecorder) {
6363
ctx.Data["ShowOutdatedComments"] = false
64-
renderConversation(ctx, preparedComment, "diff", preparedComment.GetLineContent())
64+
renderConversation(ctx, preparedComment, "diff")
6565
assert.Contains(t, resp.Body.String(), `conversation-not-existing`)
6666
})
6767
run("timeline with outdated", func(t *testing.T, ctx *context.Context, resp *httptest.ResponseRecorder) {
6868
ctx.Data["ShowOutdatedComments"] = true
69-
renderConversation(ctx, preparedComment, "timeline", preparedComment.GetLineContent())
69+
renderConversation(ctx, preparedComment, "timeline")
7070
assert.Contains(t, resp.Body.String(), `<div id="code-comments-`)
7171
})
7272
run("timeline is not affected by ShowOutdatedComments=false", func(t *testing.T, ctx *context.Context, resp *httptest.ResponseRecorder) {
7373
ctx.Data["ShowOutdatedComments"] = false
74-
renderConversation(ctx, preparedComment, "timeline", preparedComment.GetLineContent())
74+
renderConversation(ctx, preparedComment, "timeline")
7575
assert.Contains(t, resp.Body.String(), `<div id="code-comments-`)
7676
})
7777
run("diff non-existing review", func(t *testing.T, ctx *context.Context, resp *httptest.ResponseRecorder) {
7878
err := db.TruncateBeans(db.DefaultContext, &issues_model.Review{})
7979
assert.NoError(t, err)
8080
ctx.Data["ShowOutdatedComments"] = true
81-
renderConversation(ctx, preparedComment, "diff", preparedComment.GetLineContent())
81+
renderConversation(ctx, preparedComment, "diff")
8282
assert.Equal(t, http.StatusOK, resp.Code)
8383
assert.NotContains(t, resp.Body.String(), `status-page-500`)
8484
})
8585
run("timeline non-existing review", func(t *testing.T, ctx *context.Context, resp *httptest.ResponseRecorder) {
8686
err := db.TruncateBeans(db.DefaultContext, &issues_model.Review{})
8787
assert.NoError(t, err)
8888
ctx.Data["ShowOutdatedComments"] = true
89-
renderConversation(ctx, preparedComment, "timeline", preparedComment.GetLineContent())
89+
renderConversation(ctx, preparedComment, "timeline")
9090
assert.Equal(t, http.StatusOK, resp.Code)
9191
assert.NotContains(t, resp.Body.String(), `status-page-500`)
9292
})

0 commit comments

Comments
 (0)