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.
25 lines
451 B
Go
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")
|
|
}
|