feat(integrations): align linear parity
This commit is contained in:
@@ -181,6 +181,20 @@ func TestLinearIntegration_SearchIssue_BadAccountID(t *testing.T) {
|
||||
assert.Contains(t, errBody["message"], "invalid account_id")
|
||||
}
|
||||
|
||||
func TestLinearIntegration_SearchIssue_BlankQuery(t *testing.T) {
|
||||
r := setupLinearIntegrationRouter()
|
||||
|
||||
w := httptest.NewRecorder()
|
||||
req, _ := http.NewRequest("GET", "/api/v1/accounts/1/integrations/linear/search_issue", nil)
|
||||
r.ServeHTTP(w, req)
|
||||
|
||||
assert.Equal(t, http.StatusUnprocessableEntity, w.Code)
|
||||
|
||||
var resp map[string]interface{}
|
||||
json.Unmarshal(w.Body.Bytes(), &resp)
|
||||
assert.Equal(t, "Specify search string with parameter q", resp["error"])
|
||||
}
|
||||
|
||||
func TestLinearIntegration_GetLinkedIssues_BadAccountID(t *testing.T) {
|
||||
r := setupLinearIntegrationRouter()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user