We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1767157 commit b766d21Copy full SHA for b766d21
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
@@ -243,9 +243,9 @@ func TestDirList(t *testing.T) {
243
}
244
245
expected := []string{
246
- path.Base(files["aaa"]),
247
- path.Base(files["bbb"]),
248
- path.Base(files["ccc"]),
+ filepath.Base(files["aaa"]),
+ filepath.Base(files["bbb"]),
+ filepath.Base(files["ccc"]),
249
250
251
filesList, _ := dirList(dir)
0 commit comments