19 lines
363 B
Go
19 lines
363 B
Go
package migrations_test
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestUp013StoresOnlyBootstrapHash(t *testing.T) {
|
|
b, e := os.ReadFile("000013_admin_bootstrap.up.sql")
|
|
if e != nil {
|
|
t.Fatal(e)
|
|
}
|
|
s := strings.ToUpper(string(b))
|
|
if !strings.Contains(s, "CODE_HASH") || strings.Contains(s, " CODE TEXT") {
|
|
t.Fatal("bootstrap must store hash only")
|
|
}
|
|
}
|