diff --git a/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts b/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts index 1d45b8c8afbd4..4f5e9b079556a 100644 --- a/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts +++ b/packages/compiler-cli/src/ngtsc/typecheck/test/type_constructor_spec.ts @@ -159,7 +159,7 @@ TestClass.ngTypeCtor({value: 'test'}); const TestClassWithCtor = getDeclaration(res.program, _('/main.ts'), 'TestClass', isNamedClassDeclaration); const typeCtor = TestClassWithCtor.members.find(isTypeCtor) !; - const ctorText = typeCtor.getText().replace(/[ \n]+/g, ' '); + const ctorText = typeCtor.getText().replace(/[ \r\n]+/g, ' '); expect(ctorText).toContain( 'init: Pick | { bar: typeof TestClass.ngAcceptInputType_bar; }'); });