jsmod/jsmod_test.go

15 lines
249 B
Go
Raw Normal View History

2026-05-30 14:11:56 +08:00
package jsmod_test
import (
"apigo.cc/go/jsmod"
"testing"
)
func TestRegister(t *testing.T) {
jsmod.Register("test", map[string]any{"foo": "bar"})
mods := jsmod.GetModules()
if mods["test"]["foo"] != "bar" {
t.Error("Register failed")
}
}