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

@ -89,7 +89,7 @@ export interface ViewHandleEventFn {
}
/**
* Bitmask for ViewDefintion.flags.
* Bitmask for ViewDefinition.flags.
*/
export const enum ViewFlags {
None = 0,

View File

@ -242,14 +242,14 @@ function declareTests({useJit}: {useJit: boolean}) {
return MyComponent;
}
const HeroComponent = ComponentFactory('my-hero', 'my hero');
const VillianComponent = ComponentFactory('a-villian', 'a villian');
const VillainComponent = ComponentFactory('a-villain', 'a villain');
const MainComponent = ComponentFactory(
'my-app', 'I was saved by <my-hero></my-hero> from <a-villian></a-villian>.');
'my-app', 'I was saved by <my-hero></my-hero> from <a-villain></a-villain>.');
TestBed.configureTestingModule(
{declarations: [HeroComponent, VillianComponent, MainComponent]});
{declarations: [HeroComponent, VillainComponent, MainComponent]});
const fixture = TestBed.createComponent(MainComponent);
expect(fixture.nativeElement).toHaveText('I was saved by my hero from a villian.');
expect(fixture.nativeElement).toHaveText('I was saved by my hero from a villain.');
});
it('should allow to use the renderer outside of views', () => {

View File

@ -123,7 +123,7 @@ export function main() {
});
it('should ensure that we dont accidently patch native objects', () => {
it('should ensure that we dont accidentally patch native objects', () => {
expect(() => {
(<Function>Class)({constructor: Object});
}).toThrowError('Can not use native Object as constructor');

View File

@ -172,7 +172,7 @@ export function main() {
.toThrowError('No provider for Dep!');
});
it('should inject from a parent elment in a parent view', () => {
it('should inject from a parent element in a parent view', () => {
createAndGetRootNodes(compViewDef([
elementDef(
NodeFlags.None, null !, null !, 1, 'div', null !, null !, null !, null !,