first commit
This commit is contained in:
18
services/auth/jwt_test.go
Normal file
18
services/auth/jwt_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"sismedika.com/sas/westone/types"
|
||||
)
|
||||
|
||||
func TestCreateJWT(t *testing.T) {
|
||||
token, err := CreateJWT(types.DataJWT{})
|
||||
if err != nil {
|
||||
t.Errorf("error creating JWT: %v", err)
|
||||
}
|
||||
|
||||
if token == "" {
|
||||
t.Error("expected token to be not empty")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user