Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alxhub authored and AndrewKushnir committed Oct 24, 2019
1 parent 25ed82d commit 63f0ded
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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; }');
});
Expand Down

0 comments on commit 63f0ded

Please sign in to comment.