mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-26 05:27:33 +02:00
17 lines
304 B
Go
17 lines
304 B
Go
|
package remember
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"gopkg.in/authboss.v0"
|
||
|
)
|
||
|
|
||
|
func TestMakeToken(t *testing.T) {
|
||
|
tok, err := R.New(authboss.NewContext(), "storage", "hello", "world", "5")
|
||
|
if err != nil {
|
||
|
t.Error("Unexpected error:", err)
|
||
|
} else if len(tok) == 0 {
|
||
|
t.Error("It should have made a token.")
|
||
|
}
|
||
|
}
|