wa-lang.org/wazero@v1.0.2/internal/gojs/time_test.go (about) 1 package gojs_test 2 3 import ( 4 "testing" 5 6 "wa-lang.org/wazero" 7 "wa-lang.org/wazero/internal/testing/require" 8 ) 9 10 func Test_time(t *testing.T) { 11 t.Parallel() 12 13 stdout, stderr, err := compileAndRun(testCtx, "time", wazero.NewModuleConfig()) 14 15 require.EqualError(t, err, `module "" closed with exit_code(0)`) 16 require.Zero(t, stderr) 17 require.Equal(t, `Local 18 1ms 19 `, stdout) 20 }