mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-10474] review why xit and console log is allowed to be committed (#7829)
* [AAE-10474] Add husky pre-commit script to run lint-staged * [AAE-10474] Enable lint rules for console log * [AAE-10474] Run affected:lint command on pre-commit, remoive old scripts that use tslint * [AAE-10474] Remove console.log * [AAE-10474] Disable no-console lint rule for 'testing' and 'cli' projects
This commit is contained in:
@@ -386,7 +386,7 @@ describe('PaginationComponent', () => {
|
||||
|
||||
const expectedPages = [1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
||||
31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 101];
|
||||
console.log(component.pagination.totalItems, component.pagination.skipCount);
|
||||
|
||||
expect(component.limitedPages).toEqual(expectedPages);
|
||||
expect(component.limitedPages).not.toEqual(component.pages);
|
||||
});
|
||||
|
@@ -74,7 +74,7 @@ export class RichTextEditorComponent implements OnInit, OnDestroy, AfterViewInit
|
||||
this.editorInstance.save().then((outputData) => {
|
||||
this._outputData.next(outputData);
|
||||
}).catch((error) => {
|
||||
console.log('Saving failed: ', error);
|
||||
console.error('Saving failed: ', error);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user