fusenapi/utils/wevent/event_test.go

15 lines
245 B
Go
Raw Normal View History

2023-08-25 07:37:35 +00:00
package wevent
import (
"encoding/json"
"log"
"testing"
"github.com/google/uuid"
)
func TestEvent(t *testing.T) {
data, _ := json.Marshal(NewWebsocketEvent(UserEmailRegister, uuid.NewString()).WithCode(200))
log.Println(string(data))
}