Honestly i'm going on just for the challenge now'

This commit is contained in:
Vito Albano
2023-12-22 15:30:44 +00:00
parent d1ecdb7a78
commit 54eccd8adf

View File

@@ -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');