fix(ivy): fix broken typechecking test on Windows (#33376)

One of the template type-checking tests relies on the newline character,
which is different on Windows. This commit fixes the issue.

PR Close #33376
This commit is contained in:
Alex Rickabaugh 2019-10-24 10:53:42 -07:00 committed by Andrew Kushnir
parent 25ed82db23
commit 63f0ded5cf
1 changed files with 1 additions and 1 deletions

View File

@ -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<TestClass, "foo"> | { bar: typeof TestClass.ngAcceptInputType_bar; }');
});