Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/descrybe/descrybe-v2/apps/api/internal/billing"
|
||||
)
|
||||
|
||||
func TestRefuseA1SmokePurge(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
if err := refuseA1SmokePurge(billing.A1LegacyCompanyID, "Platform Demo"); err == nil {
|
||||
t.Fatal("want refuse when legacy_company_id is A1")
|
||||
}
|
||||
for _, name := range []string{"A1 Slovenija", "A1", "Local Demo Co", " a1 slovenija "} {
|
||||
if err := refuseA1SmokePurge("", name); err == nil {
|
||||
t.Fatalf("want refuse for A1 alias %q", name)
|
||||
}
|
||||
}
|
||||
if err := refuseA1SmokePurge("", "Platform Demo"); err != nil {
|
||||
t.Fatalf("Platform Demo must be allowed: %v", err)
|
||||
}
|
||||
if !strings.HasPrefix(processSmokeEANPrefix, "8700999") {
|
||||
t.Fatalf("processSmokeEANPrefix=%q want 8700999…", processSmokeEANPrefix)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user