mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-10 20:53:50 +08:00
14 lines
339 B
Go
14 lines
339 B
Go
package agent
|
|
|
|
import "testing"
|
|
|
|
func TestJevConfigCannotBuildChatProvider(t *testing.T) {
|
|
c := ConfigFrom("jev", "", "", "key", "")
|
|
if !c.Jev || c.Provider() != "jev" {
|
|
t.Fatalf("unexpected Jev config: %+v", c)
|
|
}
|
|
if _, err := c.NewProvider(); err == nil {
|
|
t.Fatal("Jev config must be rejected by chat provider construction")
|
|
}
|
|
}
|