Skip to content

Commit 81d76dd

Browse files
committed
update tests and code
1 parent 960ce79 commit 81d76dd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/features/registries/components/custom-step/custom-step.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ describe('CustomStepComponent', () => {
213213
{ file_id: 'f2', name: 'b' },
214214
];
215215

216-
component.removeFromAttachedFiles({ file_id: 'f1', name: 'a' }, 'field1');
216+
component.removeFromAttachedFiles('f1', 'field1');
217217

218218
expect(component.attachedFiles['field1'].length).toBe(1);
219219
expect(component.attachedFiles['field1'][0].file_id).toBe('f2');
@@ -223,7 +223,7 @@ describe('CustomStepComponent', () => {
223223
it('should skip non-existent questionKey', () => {
224224
const { component } = setup();
225225
const emitSpy = vi.spyOn(component.updateAction, 'emit');
226-
component.removeFromAttachedFiles({ file_id: 'f1' }, 'nonexistent');
226+
component.removeFromAttachedFiles('f1', 'nonexistent');
227227
expect(emitSpy).not.toHaveBeenCalled();
228228
});
229229

src/app/shared/components/files-tree/files-tree.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
severity="danger"
102102
text
103103
rounded
104-
[pTooltip]="'common.buttons.cancel' | translate"
104+
[pTooltip]="'common.buttons.delete' | translate"
105105
tooltipPosition="top"
106106
(onClick)="deleteEntry(file)"
107107
osfStopPropagation

0 commit comments

Comments
 (0)