Add projects
This commit is contained in:
parent
2d3a9ad623
commit
8b607dd700
1802 changed files with 503346 additions and 2 deletions
14
backend/sdk/auth/xai_test.go
Normal file
14
backend/sdk/auth/xai_test.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package auth
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestXAIAuthenticatorProviderAndRefreshLead(t *testing.T) {
|
||||
authenticator := NewXAIAuthenticator()
|
||||
if authenticator.Provider() != "xai" {
|
||||
t.Fatalf("Provider() = %q, want xai", authenticator.Provider())
|
||||
}
|
||||
lead := authenticator.RefreshLead()
|
||||
if lead == nil || *lead <= 0 {
|
||||
t.Fatalf("RefreshLead() = %v, want positive duration", lead)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue