refactor: fix typos (#18000)

This commit is contained in:
Victor Berchet
2017-07-07 16:55:17 -07:00
committed by Jason Aden
parent 9dd550fa1e
commit c723d42d0a
41 changed files with 48 additions and 50 deletions

View File

@ -25,7 +25,7 @@ export {
/**
* The information `LanguageService` needs from the `LanguageServiceHost` to describe the content of
* a template and the langauge context the template is in.
* a template and the language context the template is in.
*
* A host interface; see `LanguageSeriviceHost`.
*

View File

@ -30,7 +30,7 @@ describe('service without angular', () => {
() => expect(() => ngService.getDiagnostics(fileName)).not.toThrow());
it('should not crash a completion',
() => expect(() => ngService.getCompletionsAt(fileName, position)).not.toThrow());
it('should not crash a get defintion',
it('should not crash a get definition',
() => expect(() => ngService.getDefinitionAt(fileName, position)).not.toThrow());
it('should not crash a hover', () => expect(() => ngService.getHoverAt(fileName, position)));
});

View File

@ -142,7 +142,7 @@ describe('plugin', () => {
it('should reference the component',
() => { contains('app/parsing-cases.ts', 'test-comp-after-test', 'name'); });
// TODO: Enable when we have a flag that indicates the project targets the DOM
// it('should refernce the element if no component', () => {
// it('should reference the element if no component', () => {
// contains('app/parsing-cases.ts', 'test-comp-after-div', 'innerText');
// });
});
@ -163,7 +163,7 @@ describe('plugin', () => {
'app/expression-cases.ts', 'myField',
'Identifier \'myField\' refers to a private member of the component');
});
it('should report numeric operator erros',
it('should report numeric operator errors',
() => { expectSemanticError('app/expression-cases.ts', 'mod', 'Expected a numeric type'); });
describe('in ngFor', () => {
function expectError(locationMarker: string, message: string) {