24 lines
361 B
Go
24 lines
361 B
Go
package tencent_test
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
_ "apigo.cc/cloud/tencent"
|
|
"apigo.cc/gojs"
|
|
_ "apigo.cc/gojs/console"
|
|
"github.com/ssgo/u"
|
|
)
|
|
|
|
func TestHash(t *testing.T) {
|
|
gojs.ExportForDev()
|
|
r, err := gojs.RunFile("main_test.js")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
} else if r != true {
|
|
t.Fatal(r)
|
|
} else {
|
|
fmt.Println(u.BGreen("test succeess"))
|
|
}
|
|
}
|