23 lines
321 B
Go
23 lines
321 B
Go
|
package huoshan
|
||
|
|
||
|
import (
|
||
|
"apigo.cc/apigo/gojs"
|
||
|
_ "apigo.cc/apigo/gojs/modules"
|
||
|
"fmt"
|
||
|
"github.com/ssgo/u"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestExport(t *testing.T) {
|
||
|
gojs.ExportForDev()
|
||
|
}
|
||
|
|
||
|
func TestLLM(t *testing.T) {
|
||
|
r, err := gojs.RunFile("test.js")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
fmt.Println()
|
||
|
fmt.Println(u.JsonP(r))
|
||
|
}
|