Fix path label
This commit is contained in:
14
tools/path_test.go
Normal file
14
tools/path_test.go
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user