Skip to content
Snippets Groups Projects
Commit 8b40d545 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5167: rename method

parent ca0e03ac
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
data-test-id="send-button" data-test-id="send-button"
[stateResource]="saveAndSendInProgress$ | async" [stateResource]="saveAndSendInProgress$ | async"
text="Bescheid senden" text="Bescheid senden"
(clickEmitter)="saveAndSendWithMessage(bescheidDraftStateResource.resource)" (clickEmitter)="saveAndSendWithNachricht(bescheidDraftStateResource.resource)"
></ozgcloud-button-with-spinner> ></ozgcloud-button-with-spinner>
</ng-container> </ng-container>
</ng-container> </ng-container>
......
...@@ -279,7 +279,7 @@ describe('VorgangDetailBescheidenResultComponent', () => { ...@@ -279,7 +279,7 @@ describe('VorgangDetailBescheidenResultComponent', () => {
}); });
}); });
describe('save and send with message', () => { describe('save and send with Nachricht', () => {
const bescheidDraft: BescheidResource = createBescheidResource(); const bescheidDraft: BescheidResource = createBescheidResource();
const bescheidStateResource: StateResource<BescheidResource> = const bescheidStateResource: StateResource<BescheidResource> =
createStateResource(bescheidDraft); createStateResource(bescheidDraft);
...@@ -293,7 +293,7 @@ describe('VorgangDetailBescheidenResultComponent', () => { ...@@ -293,7 +293,7 @@ describe('VorgangDetailBescheidenResultComponent', () => {
it('should call do save and send', () => { it('should call do save and send', () => {
component.doSaveAndSend = jest.fn(); component.doSaveAndSend = jest.fn();
component.saveAndSendManually(bescheidDraft); component.saveAndSendWithNachricht(bescheidDraft);
expect(component.doSaveAndSend).toHaveBeenCalled(); expect(component.doSaveAndSend).toHaveBeenCalled();
}); });
......
...@@ -80,7 +80,7 @@ export class VorgangDetailBescheidenResultComponent implements OnInit { ...@@ -80,7 +80,7 @@ export class VorgangDetailBescheidenResultComponent implements OnInit {
this.saveAndSendInProgress$ = this.doSaveAndSend(bescheidDraft); this.saveAndSendInProgress$ = this.doSaveAndSend(bescheidDraft);
} }
public saveAndSendWithMessage(bescheidDraft: BescheidResource): void { public saveAndSendWithNachricht(bescheidDraft: BescheidResource): void {
this.saveAndSendInProgress$ = this.doSaveAndSend(bescheidDraft); this.saveAndSendInProgress$ = this.doSaveAndSend(bescheidDraft);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment