github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/init_test.go (about) 1 // +build js 2 3 package react_test 4 5 import ( 6 "fmt" 7 "testing" 8 9 "github.com/gopherjs/gopherjs/js" 10 ) 11 12 func TestMain(m *testing.M) { 13 i := m.Run() 14 15 js.Global.Call("eval", fmt.Sprintf("window.$GopherJSTestResult = %v", i)) 16 }