feat(language-service): completions support for tuple array (#33928)
PR Close #33928
This commit is contained in:
@ -150,6 +150,15 @@ describe('diagnostics', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should produce diagnostics for invalid tuple type property access', () => {
|
||||
mockHost.override(TEST_TEMPLATE, `
|
||||
{{tupleArray[1].badProperty}}`);
|
||||
const diags = ngLS.getDiagnostics(TEST_TEMPLATE);
|
||||
expect(diags.length).toBe(1);
|
||||
expect(diags[0].messageText)
|
||||
.toBe(`Identifier 'badProperty' is not defined. 'Hero' does not contain such a member`);
|
||||
});
|
||||
|
||||
it('should not produce errors on function.bind()', () => {
|
||||
mockHost.override(TEST_TEMPLATE, `
|
||||
<test-comp (test)="myClick.bind(this)">
|
||||
|
Reference in New Issue
Block a user