mirror of
https://github.com/gogs/gogs.git
synced 2026-01-14 19:32:17 +01:00
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
17 lines
330 B
Go
17 lines
330 B
Go
package conf
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestFileNames(t *testing.T) {
|
|
names, err := FileNames(".")
|
|
require.NoError(t, err)
|
|
|
|
want := []string{"app.ini", "auth.d", "gitignore", "label", "license", "locale", "readme"}
|
|
assert.Equal(t, want, names)
|
|
}
|