in progress
This commit is contained in:
30
flashcall_test.go
Normal file
30
flashcall_test.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package sigmasms
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func loadToken(t *testing.T) string {
|
||||
data, err := os.ReadFile("./token.test")
|
||||
if err != nil {
|
||||
t.Fatalf("test token load error: %v", err)
|
||||
}
|
||||
return string(data)
|
||||
}
|
||||
|
||||
func TestFlashCall(t *testing.T) {
|
||||
token := loadToken(t)
|
||||
log.Println(token)
|
||||
}
|
||||
|
||||
func TestSMS(t *testing.T) {
|
||||
token := loadToken(t)
|
||||
SendSMS(
|
||||
token,
|
||||
"+79857770038",
|
||||
"NG.Market",
|
||||
"Привет",
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user