Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rokostik committed Jan 24, 2024
1 parent 3ff7bdc commit 63ebe5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,15 @@ func TestSDKWithMockServer(t *testing.T) {

for _, test := range testsFile.Tests {
t.Run(test.Name, func(t *testing.T) {
frcClient := NewClient(
frcClient, err := NewClient(
WithAPIKey("YOUR_API_KEY"),
WithSitekey("YOUR_SITE_KEY"),
WithSiteverifyEndpoint(MockServerURL+SiteverifyEndpoint),
WithStrictMode(test.Strict),
)
if err != nil {
t.Fatalf("failed to create Friendly Captcha client: %v", err)
}
result := frcClient.VerifyCaptchaResponse(context.TODO(), test.Response)

shouldAccept := result.ShouldAccept()
Expand Down

0 comments on commit 63ebe5f

Please sign in to comment.