mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
integrate Prettier with tslint (#1419)
* integrate prettier with tslint * remove obsolte scripts * update tsconfig * fix lint issues * fix lint errors * more rules and fixes * kebab case and lint fixes * update helpers * update util
This commit is contained in:
@@ -33,7 +33,7 @@ import { Store } from '@ngrx/store';
|
||||
import { UpdateLibraryAction } from '@alfresco/aca-shared/store';
|
||||
import { AppTestingModule } from '../../../testing/app-testing.module';
|
||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { Site, SiteBody } from '@alfresco/js-api';
|
||||
import { Site } from '@alfresco/js-api';
|
||||
import { AlfrescoApiService, AlfrescoApiServiceMock } from '@alfresco/adf-core';
|
||||
|
||||
describe('LibraryMetadataFormComponent', () => {
|
||||
@@ -71,10 +71,10 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
visibility: 'PRIVATE'
|
||||
};
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
fixture.detectChanges();
|
||||
|
||||
@@ -95,10 +95,10 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
};
|
||||
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
@@ -106,10 +106,10 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
expect(component.form.value).toEqual(siteEntryModel);
|
||||
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
...newSiteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
component.ngOnChanges();
|
||||
@@ -124,11 +124,11 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
visibility: 'PRIVATE'
|
||||
};
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
role: 'SiteManager',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
@@ -136,7 +136,7 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
component.update();
|
||||
|
||||
expect(storeMock.dispatch).toHaveBeenCalledWith(
|
||||
new UpdateLibraryAction(<SiteBody>siteEntryModel)
|
||||
new UpdateLibraryAction(siteEntryModel)
|
||||
);
|
||||
});
|
||||
|
||||
@@ -147,11 +147,11 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
visibility: 'PRIVATE'
|
||||
};
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
role: 'Consumer',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
@@ -159,7 +159,7 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
component.update();
|
||||
|
||||
expect(storeMock.dispatch).not.toHaveBeenCalledWith(
|
||||
new UpdateLibraryAction(<SiteBody>siteEntryModel)
|
||||
new UpdateLibraryAction(siteEntryModel)
|
||||
);
|
||||
});
|
||||
|
||||
@@ -170,11 +170,11 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
visibility: 'PRIVATE'
|
||||
};
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
role: 'SiteManager',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
@@ -184,7 +184,7 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
component.update();
|
||||
|
||||
expect(storeMock.dispatch).not.toHaveBeenCalledWith(
|
||||
new UpdateLibraryAction(<SiteBody>siteEntryModel)
|
||||
new UpdateLibraryAction(siteEntryModel)
|
||||
);
|
||||
});
|
||||
|
||||
@@ -205,10 +205,10 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
visibility: 'PRIVATE'
|
||||
};
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
fixture.detectChanges();
|
||||
|
||||
@@ -241,10 +241,10 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
};
|
||||
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
@@ -272,10 +272,10 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
};
|
||||
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
@@ -303,10 +303,10 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
};
|
||||
|
||||
component.node = {
|
||||
entry: <Site>{
|
||||
entry: {
|
||||
id: 'libraryId',
|
||||
...siteEntryModel
|
||||
}
|
||||
} as Site
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
|
Reference in New Issue
Block a user