Skip to content

Commit b766d21

Browse files
committed
tests: fix TestDirList for Windows
1 parent 1767157 commit b766d21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/template/functions_test.go

Lines changed: 4 additions & 4 deletions
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

@@ -243,9 +243,9 @@ func TestDirList(t *testing.T) {
243243
}
244244

245245
expected := []string{
246-
path.Base(files["aaa"]),
247-
path.Base(files["bbb"]),
248-
path.Base(files["ccc"]),
246+
filepath.Base(files["aaa"]),
247+
filepath.Base(files["bbb"]),
248+
filepath.Base(files["ccc"]),
249249
}
250250

251251
filesList, _ := dirList(dir)

0 commit comments

Comments
 (0)