diff --git a/scripts/check-terraform-isolation.test.mjs b/scripts/check-terraform-isolation.test.mjs index 0f3b9855..9ddd0023 100644 --- a/scripts/check-terraform-isolation.test.mjs +++ b/scripts/check-terraform-isolation.test.mjs @@ -160,12 +160,12 @@ test("isolation workflow re-evaluates on labeled and unlabeled without rerunning assert.match(isolationYaml, new RegExp(`^ - ${eventType}$`, "m"), eventType); } - assert.doesNotMatch(ciYaml, /^ - labeled$/m); - assert.doesNotMatch(ciYaml, /^ - unlabeled$/m); - assert.doesNotMatch(ciYaml, /^ terraform-isolation:\n/m); + assert.doesNotMatch(ciYaml, /^ {6}- labeled$/m); + assert.doesNotMatch(ciYaml, /^ {6}- unlabeled$/m); + assert.doesNotMatch(ciYaml, /^ {2}terraform-isolation:\n/m); assert.doesNotMatch(ciYaml, /github\.event\.action != 'labeled'/); - assert.match(isolationYaml, /^ terraform-isolation:\n/m); + assert.match(isolationYaml, /^ {2}terraform-isolation:\n/m); assert.match(isolationYaml, /name: Terraform and application changes are isolated/); assert.doesNotMatch(isolationYaml, /github\.event\.action != 'labeled'/); });