Skip to content

Commit e4d2cdd

Browse files
committed
tests: fix TestDirList for Windows
1 parent 92eb86a commit e4d2cdd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/template/functions_test.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package template
22

33
import (
44
"os"
5-
"path"
5+
"path/filepath"
66
"reflect"
77
"testing"
88

@@ -240,9 +240,10 @@ func TestDirList(t *testing.T) {
240240
}
241241

242242
expected := []string{
243-
path.Base(files["aaa"]),
244-
path.Base(files["bbb"]),
245-
path.Base(files["ccc"]),
243+
filepath.Base(files["aaa"]),
244+
filepath.Base(files["aaa"]),
245+
filepath.Base(files["bbb"]),
246+
filepath.Base(files["ccc"]),
246247
}
247248

248249
filesList, _ := dirList(dir)

0 commit comments

Comments
 (0)