Skip to content

Commit

Permalink
Merge pull request #56 from conneroisu/dev
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
conneroisu authored Sep 20, 2024
2 parents b2bdc68 + 9255585 commit 9281ca0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,26 @@
// +build !test

package groq

import (
"net/http"
"os"
"testing"

"github.com/rs/zerolog"
)

func TestClient(t *testing.T) {
client, err := NewClient(
"test",
WithBaseURL("http://localhost/v1"),
WithClient(http.DefaultClient),
WithLogger(zerolog.New(os.Stderr).Level(zerolog.DebugLevel).With().Timestamp().Logger()),
)
if err != nil {
t.Fatal(err)
}
if client == nil {
t.Fatal("client is nil")
}
}

0 comments on commit 9281ca0

Please sign in to comment.