mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
linting fixes
This commit is contained in:
committed by
Anukriti Singh
parent
66af36351b
commit
001d0160d8
-1
@@ -53,7 +53,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.adf-categories-list {
|
.adf-categories-list {
|
||||||
|
|
||||||
.mat-list-base .mat-list-item,
|
.mat-list-base .mat-list-item,
|
||||||
.mat-list-base .mat-list-option {
|
.mat-list-base .mat-list-option {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
+6
-6
@@ -112,6 +112,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-metadata-tab .adf-metadata-properties .mat-expansion-panel {
|
||||||
|
border: 1px solid var(--adf-metadata-property-panel-border-color);
|
||||||
|
border-radius: 12px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.acs-details-container {
|
.acs-details-container {
|
||||||
.mat-tab-body-content {
|
.mat-tab-body-content {
|
||||||
.adf-metadata-properties {
|
.adf-metadata-properties {
|
||||||
@@ -130,9 +136,3 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-metadata-tab .adf-metadata-properties .mat-expansion-panel {
|
|
||||||
border: 1px solid var(--adf-metadata-property-panel-border-color);
|
|
||||||
border-radius: 12px;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
|
||||||
|
|||||||
+3
-16
@@ -462,9 +462,9 @@ describe('ContentMetadataComponent', () => {
|
|||||||
expect(component.categoriesPanelState).toBe(true);
|
expect(component.categoriesPanelState).toBe(true);
|
||||||
expect(component.editable).toBe(false);
|
expect(component.editable).toBe(false);
|
||||||
expect(component.editableTags).toBe(false);
|
expect(component.editableTags).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should toggle group editable', () => {
|
it('should toggle group editable', () => {
|
||||||
const eventMock = new MouseEvent('click');
|
const eventMock = new MouseEvent('click');
|
||||||
const group: CardViewGroup = {
|
const group: CardViewGroup = {
|
||||||
editable: false, expanded: false,
|
editable: false, expanded: false,
|
||||||
@@ -479,7 +479,7 @@ describe('ContentMetadataComponent', () => {
|
|||||||
expect(component.editable).toBe(false);
|
expect(component.editable).toBe(false);
|
||||||
expect(component.editableTags).toBe(false);
|
expect(component.editableTags).toBe(false);
|
||||||
expect(component.editableCategories).toBe(false);
|
expect(component.editableCategories).toBe(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('toggleEditMode', () => {
|
describe('toggleEditMode', () => {
|
||||||
@@ -970,13 +970,9 @@ describe('ContentMetadataComponent', () => {
|
|||||||
component.displayAspect = 'EXIF';
|
component.displayAspect = 'EXIF';
|
||||||
component.expanded = true;
|
component.expanded = true;
|
||||||
component.displayEmpty = true;
|
component.displayEmpty = true;
|
||||||
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
|
|
||||||
let defaultProp = queryDom(fixture);
|
let defaultProp = queryDom(fixture);
|
||||||
let exifProp = queryDom(fixture, 'EXIF');
|
|
||||||
let customProp = queryDom(fixture, 'CUSTOM');
|
|
||||||
expect(defaultProp.componentInstance.expanded).toBeFalsy();
|
expect(defaultProp.componentInstance.expanded).toBeFalsy();
|
||||||
|
|
||||||
component.displayAspect = 'CUSTOM';
|
component.displayAspect = 'CUSTOM';
|
||||||
@@ -985,23 +981,14 @@ describe('ContentMetadataComponent', () => {
|
|||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
|
|
||||||
defaultProp = queryDom(fixture);
|
defaultProp = queryDom(fixture);
|
||||||
exifProp = queryDom(fixture, 'EXIF');
|
|
||||||
customProp = queryDom(fixture, 'CUSTOM');
|
|
||||||
expect(defaultProp.componentInstance.expanded).toBeFalsy();
|
expect(defaultProp.componentInstance.expanded).toBeFalsy();
|
||||||
expect(exifProp.componentInstance.expanded).toBeFalsy();
|
|
||||||
expect(customProp.componentInstance.expanded).toBeTruthy();
|
|
||||||
|
|
||||||
component.displayAspect = 'Properties';
|
component.displayAspect = 'Properties';
|
||||||
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
|
|
||||||
defaultProp = queryDom(fixture);
|
defaultProp = queryDom(fixture);
|
||||||
exifProp = queryDom(fixture, 'EXIF');
|
|
||||||
customProp = queryDom(fixture, 'CUSTOM');
|
|
||||||
expect(defaultProp.componentInstance.expanded).toBeTruthy();
|
expect(defaultProp.componentInstance.expanded).toBeTruthy();
|
||||||
expect(exifProp.componentInstance.expanded).toBeFalsy();
|
|
||||||
expect(customProp.componentInstance.expanded).toBeFalsy();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not expand anything if input is wrong', async () => {
|
it('should not expand anything if input is wrong', async () => {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
"max-line-length": 240,
|
"max-line-length": 240,
|
||||||
"linebreaks": "unix",
|
"linebreaks": "unix",
|
||||||
"selector-class-pattern": [
|
"selector-class-pattern": [
|
||||||
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page)",
|
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page|acs)",
|
||||||
{
|
{
|
||||||
"resolveNestedSelectors": true
|
"resolveNestedSelectors": true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user