aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/auth/login_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/core/auth/login_test.go')
-rw-r--r--bridge/core/auth/login_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/bridge/core/auth/login_test.go b/bridge/core/auth/login_test.go
new file mode 100644
index 00000000..3fc4a391
--- /dev/null
+++ b/bridge/core/auth/login_test.go
@@ -0,0 +1,13 @@
+package auth
+
+import (
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestLoginSerial(t *testing.T) {
+ original := NewLogin("github", "jean")
+ loaded := testCredentialSerial(t, original)
+ assert.Equal(t, original.Login, loaded.(*Login).Login)
+}