mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
20 lines
322 B
Go
20 lines
322 B
Go
package notification
|
|
|
|
import (
|
|
"net/http"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestService_sendMobile(t *testing.T) {
|
|
T.Setup(t)
|
|
e := T.NewExpect(t)
|
|
time.Sleep(1 * time.Second)
|
|
|
|
data := map[string]interface{}{
|
|
"task_id": T.TestTask.GetId().Hex(),
|
|
}
|
|
e.POST("/send/mobile").WithJSON(data).
|
|
Expect().Status(http.StatusOK)
|
|
}
|