fix(language-service): apply suggestion (#34177)

PR Close #34177
This commit is contained in:
ivanwonder
2019-12-03 10:45:17 +08:00
committed by Andrew Kushnir
parent 148a060daa
commit 7a86a32040
4 changed files with 16 additions and 12 deletions

View File

@ -173,10 +173,9 @@ describe('diagnostics', () => {
.toBe(`Identifier 'badProperty' is not defined. 'Hero' does not contain such a member`);
});
it('should not produce errors with dot notation if stringIndexType is js primitive type',
it('should not produce errors with dot notation if stringIndexType is a primitive type',
() => {
mockHost.override(TEST_TEMPLATE, `
{{primitiveType.test}}`);
mockHost.override(TEST_TEMPLATE, `{{primitiveIndexType.test}}`);
const diags = ngLS.getDiagnostics(TEST_TEMPLATE);
expect(diags.length).toBe(0);
});