refactor: fix typos (#18000)
This commit is contained in:

committed by
Jason Aden

parent
9dd550fa1e
commit
c723d42d0a
@ -89,7 +89,7 @@ export interface ViewHandleEventFn {
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitmask for ViewDefintion.flags.
|
||||
* Bitmask for ViewDefinition.flags.
|
||||
*/
|
||||
export const enum ViewFlags {
|
||||
None = 0,
|
||||
|
@ -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', () => {
|
||||
|
@ -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');
|
||||
|
@ -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 !,
|
||||
|
Reference in New Issue
Block a user