92e6c4fe1e
Extends DownloadSettings with 4 additional options: - Name: File name pattern for downloaded files (existed) - Disabled: Disables downloads - Originals: Only download files stored in "originals" folder - MediaRaw: Include RAW image files - MediaSidecar: Include metadata sidecar files (JSON, XMP, YAML)
19 lines
384 B
Go
19 lines
384 B
Go
package clean
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestUsername(t *testing.T) {
|
|
t.Run("Admin ", func(t *testing.T) {
|
|
assert.Equal(t, "admin", Username("Admin "))
|
|
})
|
|
t.Run(" Admin ", func(t *testing.T) {
|
|
assert.Equal(t, "admin", Username(" Admin "))
|
|
})
|
|
t.Run(" admin ", func(t *testing.T) {
|
|
assert.Equal(t, "admin", Username(" admin "))
|
|
})
|
|
}
|