diff --git a/internal/dispatch/repository_test.go b/internal/dispatch/repository_test.go index 16a7899..1bde627 100644 --- a/internal/dispatch/repository_test.go +++ b/internal/dispatch/repository_test.go @@ -57,17 +57,14 @@ func TestRepositoryDispatchRun(t *testing.T) { q.Set("per_page", "100") q.Set("page", "1") - // TODO: is this correct? is it the correct response? reg.Register( httpmock.QueryMatcher("GET", fmt.Sprintf("repos/%s/actions/workflows", repo), q), httpmock.StringResponse(fmt.Sprintf(getWorkflowRunsResponse, event, repo))) - // TODO: is this correct? is it the correct response? reg.Register( httpmock.REST("GET", fmt.Sprintf("repos/%s/actions/workflows/456", repo)), httpmock.StringResponse(getWorkflowResponse)) - // TODO: is this correct? is it the correct response? reg.Register( httpmock.REST("GET", fmt.Sprintf("repos/%s/actions/workflows/456", repo)), httpmock.StringResponse(getWorkflowResponse)) diff --git a/internal/dispatch/workflow_test.go b/internal/dispatch/workflow_test.go index 777ec74..bf2773f 100644 --- a/internal/dispatch/workflow_test.go +++ b/internal/dispatch/workflow_test.go @@ -59,12 +59,10 @@ func TestWorkflowDispatchRun(t *testing.T) { q.Set("per_page", "100") q.Set("page", "1") - // TODO: is this correct? is it the correct response? reg.Register( httpmock.QueryMatcher("GET", fmt.Sprintf("repos/%s/actions/workflows", repo), q), httpmock.StringResponse(fmt.Sprintf(getWorkflowRunsResponse, event))) - // TODO: is this correct? is it the correct response? reg.Register( httpmock.REST("GET", fmt.Sprintf("repos/%s/actions/workflows/456", repo)), httpmock.StringResponse(getWorkflowResponse)) @@ -147,12 +145,10 @@ JOBS q.Set("per_page", "100") q.Set("page", "1") - // TODO: is this correct? is it the correct response? reg.Register( httpmock.QueryMatcher("GET", fmt.Sprintf("repos/%s/actions/workflows", repo), q), httpmock.StringResponse(fmt.Sprintf(getWorkflowRunsResponse, event))) - // TODO: is this correct? is it the correct response? reg.Register( httpmock.REST("GET", fmt.Sprintf("repos/%s/actions/workflows/456", repo)), httpmock.StringResponse(getWorkflowResponse))