Fix path label

This commit is contained in:
2022-06-01 16:51:45 +02:00
parent 75500c0830
commit 403e7fb7e5
5 changed files with 14 additions and 12 deletions

14
tools/path_test.go Normal file
View File

@@ -0,0 +1,14 @@
package tools
import (
"katenary/compose"
"testing"
)
func Test_PathToName(t *testing.T) {
path := compose.GetCurrentDir() + "/envéfoo.file"
name := PathToName(path)
if name != "env-foo-file" {
t.Error("Expected env-foo-file, got ", name)
}
}