diff --git a/packages/angular/build/src/utils/index-file/auto-csp_spec.ts b/packages/angular/build/src/utils/index-file/auto-csp_spec.ts
index 1ec5f2ab06aa..a1bfa179f07c 100644
--- a/packages/angular/build/src/utils/index-file/auto-csp_spec.ts
+++ b/packages/angular/build/src/utils/index-file/auto-csp_spec.ts
@@ -108,7 +108,7 @@ describe('auto-csp', () => {
// Head loader script is in the head.
expect(result).toContain(``);
// Only two loader scripts are created.
- expect(Array.from(result.matchAll(/`);
// Only one loader script is created.
- expect(Array.from(result.matchAll(/