mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Adds tests to cover changes made in #28765
This commit is contained in:
		| @@ -66,7 +66,10 @@ func TestAPIWatch(t *testing.T) { | ||||
| 	t.Run("IsWatching", func(t *testing.T) { | ||||
| 		defer tests.PrintCurrentTest(t)() | ||||
|  | ||||
| 		req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo)). | ||||
| 		req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo)) | ||||
| 		MakeRequest(t, req, http.StatusUnauthorized) | ||||
|  | ||||
| 		req = NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo)). | ||||
| 			AddTokenAuth(tokenWithRepoScope) | ||||
| 		MakeRequest(t, req, http.StatusOK) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user