mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 01:57:20 +00:00
Enable tenv and testifylint rules (#32852)
Enables tenv and testifylint linters closes: https://github.com/go-gitea/gitea/issues/32842
This commit is contained in:
@ -120,7 +120,7 @@ func TestAPINotification(t *testing.T) {
|
||||
AddTokenAuth(token)
|
||||
resp = MakeRequest(t, req, http.StatusOK)
|
||||
DecodeJSON(t, resp, &newStruct)
|
||||
assert.True(t, newStruct.New > 0)
|
||||
assert.Positive(t, newStruct.New)
|
||||
|
||||
// -- mark notifications as read --
|
||||
req = NewRequest(t, "GET", "/api/v1/notifications?status-types=unread").
|
||||
@ -154,7 +154,7 @@ func TestAPINotification(t *testing.T) {
|
||||
AddTokenAuth(token)
|
||||
resp = MakeRequest(t, req, http.StatusOK)
|
||||
DecodeJSON(t, resp, &newStruct)
|
||||
assert.True(t, newStruct.New == 0)
|
||||
assert.Zero(t, newStruct.New)
|
||||
}
|
||||
|
||||
func TestAPINotificationPUT(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user