27 lines
498 B
Go
27 lines
498 B
Go
package storyline_test
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestCreateEmail(t *testing.T) {
|
|
loc, _ := time.LoadLocation("Local")
|
|
if opentime, err := time.ParseInLocation("2006-01-02", "2023-08-08", loc); err != nil {
|
|
fmt.Printf("%v", err)
|
|
return
|
|
} else {
|
|
fmt.Printf("%v", opentime)
|
|
}
|
|
|
|
}
|
|
|
|
func TestReadEmail(t *testing.T) {
|
|
// data, err := db.Mail_ReadOneMail("62a078c0726ea54890c34937")
|
|
// if err != nil {
|
|
// log.Printf("%v", data.Reward)
|
|
// }
|
|
// require.Nil(t, err, data)
|
|
}
|