mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
14 lines
257 B
Go
14 lines
257 B
Go
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)
|
|
}
|