17 lines
402 B
Go
17 lines
402 B
Go
package sysconfmod
|
|
|
|
import "testing"
|
|
|
|
func TestShortDramaCardConfigIsInitializedAsSelect(t *testing.T) {
|
|
for _, item := range initData {
|
|
if item.VCode != string(VCodeShortDramaCardID) {
|
|
continue
|
|
}
|
|
if item.Type != CfgTypeSelect {
|
|
t.Fatalf("short drama card config type = %q, want %q", item.Type, CfgTypeSelect)
|
|
}
|
|
return
|
|
}
|
|
t.Fatal("short drama card config is missing from initData")
|
|
}
|