forked from kevadesu/forgejo
parent
1e7b368ccf
commit
c33cbae7cc
11 changed files with 15 additions and 18 deletions
|
@ -40,7 +40,7 @@ func TestCompareTag(t *testing.T) {
|
|||
|
||||
req = NewRequest(t, "GET", "/user2/repo1/compare/invalid")
|
||||
resp = session.MakeRequest(t, req, http.StatusNotFound)
|
||||
assert.False(t, strings.Contains(resp.Body.String(), ">500<"), "expect 404 page not 500")
|
||||
assert.NotContains(t, resp.Body.String(), ">500<", "expect 404 page not 500")
|
||||
}
|
||||
|
||||
// Compare with inferred default branch (master)
|
||||
|
|
|
@ -48,7 +48,7 @@ func TestBranchLastUpdatedTime(t *testing.T) {
|
|||
{
|
||||
buf := ""
|
||||
findTextNonNested(t, node, &buf)
|
||||
assert.True(t, strings.Contains(buf, "Updated"))
|
||||
assert.Contains(t, buf, "Updated")
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
@ -902,7 +902,7 @@ func TestRepoFollowSymlink(t *testing.T) {
|
|||
symlinkURL, ok := htmlDoc.Find(".file-actions .button[data-kind='follow-symlink']").Attr("href")
|
||||
if shouldExist {
|
||||
assert.True(t, ok)
|
||||
assert.EqualValues(t, expectedSymlinkURL, symlinkURL)
|
||||
assert.Equal(t, expectedSymlinkURL, symlinkURL)
|
||||
} else {
|
||||
assert.False(t, ok)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue