aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/auth/token_test.go
blob: d8cd6652a803fec8ba0856c5d241cbe755449732 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package auth

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestTokenSerial(t *testing.T) {
	original := NewToken("github", "value")
	loaded := testCredentialSerial(t, original)
	assert.Equal(t, original.Value, loaded.(*Token).Value)
}