mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Tests: Add unit tests for internal/entity
This commit is contained in:
@@ -159,6 +159,11 @@ func TestPassword_Cost(t *testing.T) {
|
||||
assert.Equal(t, 14, cost)
|
||||
}
|
||||
})
|
||||
t.Run("empty password", func(t *testing.T) {
|
||||
p := NewPassword("urrwaxd19ldtz68x", "", false)
|
||||
_, err := p.Cost()
|
||||
assert.Error(t, err)
|
||||
})
|
||||
}
|
||||
|
||||
func TestPassword_String(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user