diff --git a/config/loader_test.go b/config/loader_test.go index 320d1ea06..a07d506a8 100644 --- a/config/loader_test.go +++ b/config/loader_test.go @@ -50,6 +50,17 @@ func TestLoadBasic(t *testing.T) { } } +func TestLoadBasic_empty(t *testing.T) { + c, err := Load(filepath.Join(fixtureDir, "empty.tf")) + if err != nil { + t.Fatalf("err: %s", err) + } + + if c == nil { + t.Fatal("config should not be nil") + } +} + func TestLoadBasic_import(t *testing.T) { // Skip because we disabled importing t.Skip() diff --git a/config/test-fixtures/empty.tf b/config/test-fixtures/empty.tf new file mode 100644 index 000000000..e69de29bb