14 lines
252 B
Go
14 lines
252 B
Go
|
package service_definition
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestGetServiceDefinitionFromFileDoesNotExist(t *testing.T) {
|
||
|
_, err := GetServiceDefinitionFromFile(t.TempDir() + "/not-a-file.yml")
|
||
|
|
||
|
if err == nil {
|
||
|
t.Errorf("Expected error, got nil.")
|
||
|
}
|
||
|
}
|