[ADF-3591] spellcheck support for code (#3827)

* setup spellcheck
This commit is contained in:
Denys Vuika
2018-10-23 15:05:38 +01:00
committed by Eugenio Romano
parent 53d96679ea
commit e39a2b149b
262 changed files with 1561 additions and 1005 deletions

View File

@@ -89,7 +89,7 @@ describe('CardViewItemDispatcherComponent', () => {
TestBed.resetTestingModule();
});
describe('Subcompomnent creation', () => {
describe('Sub-component creation', () => {
it('should load the CardViewShinyCustomElementItemComponent', () => {
const innerElement = fixture.debugElement.query(By.css('[data-automation-id="found-me"]'));
@@ -136,7 +136,7 @@ describe('CardViewItemDispatcherComponent', () => {
});
});
describe('Angular lifecycle methods', () => {
describe('Angular life-cycle methods', () => {
let shinyCustomElementItemComponent;
@@ -155,7 +155,7 @@ describe('CardViewItemDispatcherComponent', () => {
shinyCustomElementItemComponent = fixture.debugElement.query(By.css('whatever-you-want-to-have')).componentInstance;
});
it('should call through the lifecycle methods', () => {
it('should call through the life-cycle methods', () => {
lifeCycleMethods.forEach((lifeCycleMethod) => {
shinyCustomElementItemComponent[lifeCycleMethod] = () => {};
spyOn(shinyCustomElementItemComponent, lifeCycleMethod);
@@ -167,7 +167,7 @@ describe('CardViewItemDispatcherComponent', () => {
});
});
it('should NOT call through the lifecycle methods if the method does not exist (no error should be thrown)', () => {
it('should NOT call through the life-cycle methods if the method does not exist (no error should be thrown)', () => {
const param = {};
lifeCycleMethods.forEach((lifeCycleMethod) => {
shinyCustomElementItemComponent[lifeCycleMethod] = undefined;

View File

@@ -53,7 +53,7 @@ export class CardViewItemDispatcherComponent implements OnChanges {
constructor(private cardItemTypeService: CardItemTypeService,
private resolver: ComponentFactoryResolver) {
const dynamicLifecycleMethods = [
const dynamicLifeCycleMethods = [
'ngOnInit',
'ngDoCheck',
'ngAfterContentInit',
@@ -63,8 +63,8 @@ export class CardViewItemDispatcherComponent implements OnChanges {
'ngOnDestroy'
];
dynamicLifecycleMethods.forEach((dynamicLifecycleMethod) => {
this[dynamicLifecycleMethod] = this.proxy.bind(this, dynamicLifecycleMethod);
dynamicLifeCycleMethods.forEach(method => {
this[method] = this.proxy.bind(this, method);
});
}