spud/service_definition/service_definition_test.go
Marc Cataford d6a5587a66
All checks were successful
Pull-Request / tests (pull_request) Successful in 1m14s
Pull-Request / static-analysis (pull_request) Successful in 1m38s
Pull-Request / post-run (pull_request) Successful in 24s
refactor: isolate + inject DefinitionFetcher
2024-11-10 11:09:40 -05:00

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.")
}
}