mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-19 17:55:16 +02:00
Added branch to test for valid key in GetPath
This commit is contained in:
@@ -86,6 +86,13 @@ func TestGetPath(t *testing.T) {
|
||||
if result != "" {
|
||||
t.Log("Expected empty result but got ", result)
|
||||
}
|
||||
|
||||
validPathKey := "wsPath"
|
||||
result = GetPath(validPathKey)
|
||||
if result != "/home/system/components/ws/" {
|
||||
t.Log("Expected /home/system/components/ws/ but got", result)
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetSQLiteFormattedDateTime(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user