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 =
|
const TestClassWithCtor =
|
||||||
getDeclaration(res.program, _('/main.ts'), 'TestClass', isNamedClassDeclaration);
|
getDeclaration(res.program, _('/main.ts'), 'TestClass', isNamedClassDeclaration);
|
||||||
const typeCtor = TestClassWithCtor.members.find(isTypeCtor) !;
|
const typeCtor = TestClassWithCtor.members.find(isTypeCtor) !;
|
||||||
const ctorText = typeCtor.getText().replace(/[ \n]+/g, ' ');
|
const ctorText = typeCtor.getText().replace(/[ \r\n]+/g, ' ');
|
||||||
expect(ctorText).toContain(
|
expect(ctorText).toContain(
|
||||||
'init: Pick<TestClass, "foo"> | { bar: typeof TestClass.ngAcceptInputType_bar; }');
|
'init: Pick<TestClass, "foo"> | { bar: typeof TestClass.ngAcceptInputType_bar; }');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user