Content-Length: 276367 | pFad | http://github.com/github/github-mcp-server/commit/e267a3c4a1f42e3b25f52772385c1f5cb35905d2

81 assert request params (#94) · github/github-mcp-server@e267a3c · GitHub
Skip to content

Commit e267a3c

Browse files
authored
assert request params (#94)
1 parent 9e2b1f0 commit e267a3c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/github/code_scanning_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,15 @@ func Test_ListCodeScanningAlerts(t *testing.T) {
156156
{
157157
name: "successful alerts listing",
158158
mockedClient: mock.NewMockedHTTPClient(
159-
mock.WithRequestMatch(
159+
mock.WithRequestMatchHandler(
160160
mock.GetReposCodeScanningAlertsByOwnerByRepo,
161-
mockAlerts,
161+
expectQueryParams(t, map[string]string{
162+
"ref": "main",
163+
"state": "open",
164+
"severity": "high",
165+
}).andThen(
166+
mockResponse(t, http.StatusOK, mockAlerts),
167+
),
162168
),
163169
),
164170
requestArgs: map[string]interface{}{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/commit/e267a3c4a1f42e3b25f52772385c1f5cb35905d2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy