We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92eb86a commit e4d2cddCopy full SHA for e4d2cdd
internal/template/functions_test.go
@@ -2,7 +2,7 @@ package template
2
3
import (
4
"os"
5
- "path"
+ "path/filepath"
6
"reflect"
7
"testing"
8
@@ -240,9 +240,10 @@ func TestDirList(t *testing.T) {
240
}
241
242
expected := []string{
243
- path.Base(files["aaa"]),
244
- path.Base(files["bbb"]),
245
- path.Base(files["ccc"]),
+ filepath.Base(files["aaa"]),
+ filepath.Base(files["bbb"]),
246
+ filepath.Base(files["ccc"]),
247
248
249
filesList, _ := dirList(dir)
0 commit comments