fusenapi/utils/wevent/event_test.go
2023-08-25 15:37:35 +08:00

15 lines
245 B
Go

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))
}