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:
parent
25ed82db23
commit
63f0ded5cf
|
@ -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; }');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue