Skip to content

Commit 074573e

Browse files
committed
fix spacing on test
1 parent 037fb3e commit 074573e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/terraform_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ func TestExecuteTerraform_TerraformPlanWithProcessingTemplates(t *testing.T) {
9191
output := buf.String()
9292

9393
// Check the output
94-
if !strings.Contains(output, "foo = \"component-1-a\"") {
94+
if !strings.Contains(strings.ReplaceAll(output, " ", ""), "foo=\"component-1-a\"") {
9595
t.Errorf("'foo' variable should be 'component-1-a'")
9696
}
97-
if !strings.Contains(output, "bar = \"component-1-b\"") {
97+
if !strings.Contains(strings.ReplaceAll(output, " ", ""), "bar=\"component-1-b\"") {
9898
t.Errorf("'bar' variable should be 'component-1-b'")
9999
}
100-
if !strings.Contains(output, "baz = \"component-1-c\"") {
100+
if !strings.Contains(strings.ReplaceAll(output, " ", ""), "baz=\"component-1-c\"") {
101101
t.Errorf("'baz' variable should be 'component-1-c'")
102102
}
103103
}

0 commit comments

Comments
 (0)