1package auth
2
3import (
4 "testing"
5
6 "github.com/stretchr/testify/assert"
7)
8
9func TestTokenSerial(t *testing.T) {
10 original := NewToken("github", "value")
11 loaded := testCredentialSerial(t, original)
12 assert.Equal(t, original.Value, loaded.(*Token).Value)
13}