Skip to content

Commit

Permalink
test(000): fix calls to use only Request now
Browse files Browse the repository at this point in the history
  • Loading branch information
nobe4 committed Aug 13, 2024
1 parent 1074763 commit 895c656
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions internal/api/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package mock
import (
"fmt"
"io"
"log/slog"
"net/http"

"github.com/nobe4/gh-not/internal/api"
Expand Down Expand Up @@ -39,6 +40,7 @@ func (m *Mock) call(verb, endpoint string) (Call, error) {
}

m.index++
slog.Debug("mock call", "verb", verb, "endpoint", endpoint, "call", call)

return call, nil
}
Expand Down
7 changes: 5 additions & 2 deletions test/integration/tests/000_calls.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
{
"verb": "GET",
"endpoint": "enrichment#1",
"data": {
"state": "open"
"response": {
"status_code": 200,
"body": {
"state": "open"
}
}
}
]

0 comments on commit 895c656

Please sign in to comment.