yao/data/data_test.go
Max f55fc7b374 ⚠️ BREAKING: Rename XGen to CUI and update license terms
1. Major Changes:
   - Migrate all XGen references to CUI
   - Update project naming conventions across codebase

2. License Updates:
   - Revise open source license terms
   - Update copyright and usage conditions

This is a breaking change that requires updates in dependent projects.
2025-05-18 12:16:45 +08:00

25 lines
451 B
Go

package data
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestReplaceCUIIndex(t *testing.T) {
err := ReplaceCUI("__yao_admin_root", "Admin-Replaced")
if err != nil {
t.Fatal(err)
}
content, err := bindataRead(_cuiV10IndexHtml, "index.html")
if err != nil {
t.Fatal(err)
}
content, err = bindataRead(_cuiV10UmiJs, "umi.js")
if err != nil {
t.Fatal(err)
}
assert.Contains(t, string(content), "Admin-Replaced")
}