1
0

embed_test.go 330 B

12345678910111213141516
  1. package conf
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. "github.com/stretchr/testify/require"
  6. )
  7. func TestFileNames(t *testing.T) {
  8. names, err := FileNames(".")
  9. require.NoError(t, err)
  10. want := []string{"app.ini", "auth.d", "gitignore", "label", "license", "locale", "readme"}
  11. assert.Equal(t, want, names)
  12. }