Skip to content

Commit 95811fc

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

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

@@ -240,9 +240,9 @@ 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["bbb"]),
245+
filepath.Base(files["ccc"]),
246246
}
247247

248248
filesList, _ := dirList(dir)

0 commit comments

Comments
 (0)