mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Honestly i'm going on just for the challenge now'
This commit is contained in:
@@ -724,8 +724,6 @@ describe('ContentMetadataComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should load the group properties on node change', () => {
|
it('should load the group properties on node change', () => {
|
||||||
getGroupedPropertiesSpy;
|
|
||||||
|
|
||||||
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });
|
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });
|
||||||
|
|
||||||
expect(contentMetadataService.getGroupedProperties).toHaveBeenCalledWith(expectedNode, 'custom-preset');
|
expect(contentMetadataService.getGroupedProperties).toHaveBeenCalledWith(expectedNode, 'custom-preset');
|
||||||
@@ -748,7 +746,6 @@ describe('ContentMetadataComponent', () => {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
component.preset = presetConfig;
|
component.preset = presetConfig;
|
||||||
getGroupedPropertiesSpy;
|
|
||||||
|
|
||||||
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });
|
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });
|
||||||
|
|
||||||
@@ -823,7 +820,6 @@ describe('ContentMetadataComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should revert changes for getGroupedProperties panel on cancel', () => {
|
it('should revert changes for getGroupedProperties panel on cancel', () => {
|
||||||
getGroupedPropertiesSpy;
|
|
||||||
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });
|
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });
|
||||||
component.onCancelGroupEdit({} as CardViewGroup);
|
component.onCancelGroupEdit({} as CardViewGroup);
|
||||||
expect(contentMetadataService.getGroupedProperties).toHaveBeenCalledWith(expectedNode, 'custom-preset');
|
expect(contentMetadataService.getGroupedProperties).toHaveBeenCalledWith(expectedNode, 'custom-preset');
|
||||||
|
Reference in New Issue
Block a user