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