mirror of
https://github.com/volatiletech/authboss.git
synced 2025-02-03 13:21:22 +02:00
2b043b78fa
- Add email layouts
24 lines
322 B
Go
24 lines
322 B
Go
package flashutil
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gopkg.in/authboss.v0/internal/mocks"
|
|
)
|
|
|
|
func TestPull(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
storer := mocks.MockClientStorer{"a": "1"}
|
|
|
|
v := Pull(storer, "a")
|
|
|
|
if v != "1" {
|
|
t.Error(`Expected value "1", got:`, v)
|
|
}
|
|
|
|
if len(storer) != 0 {
|
|
t.Error("Expected length of zero")
|
|
}
|
|
}
|