1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-26 05:27:33 +02:00
authboss/remember/remember_test.go

17 lines
304 B
Go
Raw Normal View History

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.")
}
}